You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not working: dotnet build /p:TargetFramework=netstandard2.0
Exceptions (if any)
C:\Program Files\dotnet\sdk\9.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'C:\Users\leo\source\repos\leotsarev\joinrpg-net\src\JoinRpg.XGameApi.Contract\obj\project.assets.json' doesn't have a target for 'netstandard2.0'. Ensure that restore has run and that you have included 'netstandard2.0' in the TargetFrameworks for your project.
Describe the bug
When evaluating /p:TargetFramework, msbuild expect EXACT value as in .csproj and does not accept normalized value.
To Reproduce
Working:
dotnet build /p:TargetFramework=netstandard2
Not working:
dotnet build /p:TargetFramework=netstandard2.0
Exceptions (if any)
Further technical details
.NET SDK:
Version: 9.0.200
Commit: 90e8b20
Workload version: 9.0.200-manifests.c4f6226a
MSBuild version: 17.13.8+cbc39bea8
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.200\
The text was updated successfully, but these errors were encountered: