-
Notifications
You must be signed in to change notification settings - Fork 354
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
[darc/maestro++] Update global.json with any SDK package depended on in Version.Details.xml #4015
Comments
I guess it's not a big deal if it's easy to add them preemptively... the potential IDs I have in mind are:
|
I like this one the best. As far as why they are hard coded...I think primarily because there was originally one element to update. Feel free to add others. I'm not entirely sure where we would specify them that wouldn't end up being hard-coded in some fashion. |
Any objection to adding all three to avoid lag time later on? My current plan is only to create
Have publish metadata that specifies that a package is an SDK with a new attribute in BAR, enabled via a property in the SDK's
|
The csproj for an sdk should just have |
I'm not too clear on the true classifications here, but the Packaging project has that and isn't what I think of as something that would go in the global.json: arcade/src/Microsoft.DotNet.Build.Tasks.Packaging/src/Microsoft.DotNet.Build.Tasks.Packaging.csproj Line 6 in 0f1befc
But maybe that's harmless--I think it would only allow the package to be in a global.json, not prevent it from being used as an MSBuild tool package as well. |
Adding the potential SDK names to the list is merged (dotnet/arcade-services#662), so I'm comfortable going ahead with my SDK package plans as is. If it doesn't seem reasonable/worthwhile to implement generic SDK package global.json upgrade support (no big deal as far as I'm concerned, now that I got my IDs 😉), I suppose this issue can track the rollout of dotnet/arcade-services#662 and get closed after that. |
Closing at 662 is merged. |
It looks like the
global.json
SDK package update functionality is limited to only a few hardcoded SDKs:https://github.com/dotnet/arcade-services/blob/876268d727c0a5d3ec0a3f2840e9db35e20b467e/src/Microsoft.DotNet.Darc/src/DarcLib/DependencyOperations.cs
I was looking at creating an SDK package ("normal" MSBuild packages seem to have some limitations, especially during NuGet restore), but I noticed this hard-coded list that seems to be in the way.
Is there a reason these package IDs are hard-coded? Or am I mistaken?
@mmitche @JohnTortugo @riarenas
The text was updated successfully, but these errors were encountered: