-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
rename MinimumOSPlatformAttribute -> SupportedOSPlatformAttribute #12775
Conversation
Yes. We do need to change the property. Could help double check it did not use anywhere else? |
…sRenaming # Conflicts: # src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithOSMinimumVersion.cs
@wli3 done! please let me know if anything else needs to be changed. Thanks! |
The next runtime insertion with the type change will be blocked the failure tests. And by when we need to cherry-pick these changes to the runtime insertion PR to unblock it. |
For some reason it did not work. The new runtime is in but, it still fail to build |
could you please point me to the logs or paste the full error message here? |
@adamsitnik the current master should have the type rename flow in already. The fact that this PR still fail to build is the problem. It should have something to do with how SDK build and test. But I haven't get time to look into it yet. |
I've synced my branch and was able to reproduce the problem locally. For some reason, there are two .NET 5 versions being downloaded:
The question is: how can we force the tooling to use the newer version? |
It is not really what SDK to install. Since the new installed SDK won't have the type change (get stuck here dotnet/installer#8129). During SDK test, it should use the latest runtime and reference assemblies of the new runtime. But for some reason it doesn't hence the missing type error. |
@@ -117,11 +117,11 @@ Copyright (c) .NET Foundation. All rights reserved. | |||
</ItemGroup> | |||
|
|||
<ItemGroup Condition="'$(TargetPlatformIdentifier)' != '' | |||
and '$(MinimumOSPlatform)' != '' |
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.
@adamsitnik \ @wli3 do you happen to know what values I should use to make this work for Blazor? What values do I need to specify in the SDK for TargetPlatformIdentifier
and MinimumOSPlatform
?
FWIW I've taken a look at the problem and the The The |
@adamsitnik thank you! that's great investigation. That's very close to getting a solution. Sorry I've fire fighting the preview 8 release |
I think I have a plan. The BundledNETCoreAppPackageVersion still uses the stage 0 runtime. So it builds against the last version. I plan to just override the version with XML in C# at
Use a task to override since it was generated as a string literal replace anyway. And using C# can have better error when anything goes wrong. cc @dsplaisted |
Use the runtime in dotnet/sdk instead of in the stage 0 to avoid circular dependency. If there is a change depended on the latest runtime. Without override the runtime version in BundledNETCoreAppPackageVersion we would need to somehow get this change in without the test, and then insertion dotnet/installer and then update the stage 0 back. Use a task to override since it was generated as a string literal replace anyway. And using C# can have better error when anything goes wrong.
Great work, @wli3 and @adamsitnik! |
@wli3 thanks a lot! |
@wli3 this is the follow up of dotnet/runtime#40371
I was not sure whether I should also rename the "MinimumOSPlatform" property to "SupportedOSPlatform". Any thoughts on that?