Reputation: 609
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.
I'm able to build and run the application successfully, but not publish. The errors related to the Portal Library projects.
Errors if the Portal Library projects have target framework as .NET Portable:
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:
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.
Upvotes: 0
Views: 1048