Reputation: 259
I am trying to compile a solution with a .netstandard 2.0 projects in vs 2019(v16.10) and I got this error message (I use PostSharp):
Error MSB4064 The "NETCoreSdkRuntimeIdentifier" parameter is not supported by the "PrepareForReadyToRunCompilation" task loaded from assembly: Microsoft.NET.Build.Tasks, Version=5.0.4.26711, Culture=neutral, PublicKeyToken=31bf3856ad364e35 from the path: C:\Program Files\dotnet\sdk\5.0.300\Sdks\Microsoft.NET.Sdk\tools\net5.0\Microsoft.NET.Build.Tasks.dll. Verify that the parameter exists on the task, the points to the correct assembly, and it is a settable public instance property. PROJECT.ASSEMBLY.NAME C:\ProgramData\PostSharp\CrossGenPaths\sdk5.0.300-netcoreapp5.0-r5.0.6-win-x64\CrossGen.proj
Anyone know about this?
Upvotes: 0
Views: 616
Reputation: 259
As the @Daniel Balas's answer, I added this to the .csproj file:
<PostSharpReadyToRunDisabled>True</PostSharpReadyToRunDisabled>
It works! Thanks!
Upvotes: 1