Error MSB3644 during publish solution in Visual studio for Mac

987 Views Asked by At

I use Visual Studio for Mac 8.5.4 (the latest at this moment).

My solution contains asp.net core app with target framework 3.0 with a few Portal Library projects with some logic. enter image description here

I'm able to build and run the application successfully, but not publish. The errors related to the Portal Library projects.

enter image description here

Errors if the Portal Library projects have target framework as .NET Portable: enter image description here

dotnet publish Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core /usr/local/share/dotnet/sdk/3.1.201/Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for .NETPortable,Version=v4.5,Profile=Profile111 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

Errors if the Portal Library projects have target framework as .NET Standart Platform: enter image description here

dotnet publish Microsoft (R) Build Engine version 16.5.0+d4cbfca49 for .NET Core /usr/local/share/dotnet/sdk/3.1.201/Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for .NETPortable,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

I'm not sure what I have to install? I downloaded the latest SDK from the https://aka.ms/msbuild/developerpacks and installed it already.

0

There are 0 best solutions below