-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Microsoft.NETCore.Platforms builds on Unix #57739
Conversation
The casing of the SDK imported via the Sdk attribute was wrong which lead to: Microsoft.NETCore.Platforms.csproj : error MSB4236: The SDK 'Microsoft.NET.SDK' specified could not be found.
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsFixes #57702 The casing of the SDK imported via the Sdk attribute was wrong which lead to:
We should probably backport this into release/6.0-rc1.
|
I believe this didn't fail in the Linux allconfigurations build because this only repros when directly restoring the project. If it's restored as part of a dependency in the build graph, it doesn't complain. |
@@ -1,4 +1,4 @@ | |||
<Project Sdk="Microsoft.NET.SDK"> | |||
<Project Sdk="Microsoft.NET.Sdk"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would had made more sense for SDK resolver to keep names case insensitive (i doubt it would break anything since changing just the casing and publishing a different SDK to nuget.org doesn't work anyway), and especially since there are legit SDKs available with capital casing, e.g. Microsoft.NET.SDK.WorkloadAutoImportPropsLocator
, Microsoft.NET.SDK.WorkloadManifestTargetsLocator
; it's very easy to make this mistake. 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed...
/backport to release/6.0-rc1 |
Started backporting to release/6.0-rc1: https://github.com/dotnet/runtime/actions/runs/1148096995 |
Fixes #57702
The casing of the SDK imported via the Sdk attribute was wrong which lead to:
Microsoft.NETCore.Platforms.csproj : error MSB4236: The SDK 'Microsoft.NET.SDK' specified could not be found.
We should probably backport this into release/6.0-rc1.