-
Notifications
You must be signed in to change notification settings - Fork 347
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
Workaround to allow rc1 uptake #15076
Conversation
This works around dotnet/sdk#43339 for Arcade projects, unblocking updating to .NET SDK 9.0.100-rc.1, even when official or PR builds use Visual Studio 17.11.
@@ -184,4 +184,29 @@ | |||
</ItemGroup> | |||
</Target> | |||
|
|||
<!-- BEGIN workaround for https://github.com/dotnet/sdk/issues/43339; remove after updated to VS 17.12 or a future 17.11 patch --> | |||
<Target Name="WorkaroundDotnetSdk43339" BeforeTargets="ResolvePackageAssets" Condition=" '$(MSBuildRuntimeType)' == 'Full' and $([MSBuild]::VersionLessThan($(MSBuildVersion), 17.12.0))"> |
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.
Any other targets that might load NuGet and hit this?
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.
Probably but I don't know of any today. I guess it'd be maximally conservative to do this as an InitialTargets
or something, but that feels pretty bad . . .
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.
since arcade flows directly into the repos any cases should be visible in the flow pr and easy fix without making anything worse
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 guess another repo could always add a new target like this:
<Target Name="MyRepoWorkaroundDotnetSdk43339" DependsOnTargets="WorkaroundDotnetSdk43339" BeforeTargets="MyBrokenTarget" />
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.
Yeah, the reason to push this in Arcade is to avoid having to work around everywhere but it's possible to do so.
/backport to release/9.0 |
Started backporting to release/9.0: https://github.com/dotnet/arcade/actions/runs/10817834607 |
This works around dotnet/sdk#43339 for Arcade projects, unblocking
updating to .NET SDK 9.0.100-rc.1, even when official or PR builds use
Visual Studio 17.11.
Vetted in dotnet/msbuild#10643.