Workaround for issue 40015: nuget restore uses 'resource' instead of 'resources'#44612
Conversation
1cfa82f to
4180f8f
Compare
dsplaisted
left a comment
There was a problem hiding this comment.
I'm not sure about the details of how this issue happens. It sounds like it may be a malformed package that causes the error, but the package apparently agrees with NuGet about what the asset type should be called.
Anyway, this seems like it will probably fix the issue or at least not make things worse, so I think it's a good idea.
|
/ba-g Build failure is wholly unrelated to this change |
|
Seems like all the checks have passed 🥳 |
|
Any chance to backport this to release/8.0.4xx and/or release/9.0.1xx? 🙏 |
|
9.0.2xx yes. I don't know if we have enough feedback to justify taking it for 1xx or 4xx which are fairly locked down. The risk looks low but generally to get approval we need a strong customer justification. How long has this been broken (I think the answer is always)? Why is this coming up more recently as impacting rather than in previous releases? |
|
It isn't new, as you said, but only lately we started to care as we now need to build a project for new .NET and then it fails (for .Net Fx it works somehow). Adding this fix to 8.0.4xx will unblock us in a reasonable timeline. Waiting to 9.0.2xx, or even waiting for the monorepo to start using 9.0.1xx, means we have to find a workaround with today SDK. To be clear: if there is any workaround suggestion, we'd be very happy to try it so we can be unblocked without burdening you with backporting considerations. Thanks in advance! |
|
Well, seems like 8.0.4xx series isn't interesting for us anymore. Not sure if I am still pursuing a backport for 9.0.1xx either as it seems that switching from |
|
/backport to release/9.0.2xx |
|
Started backporting to release/9.0.2xx: https://github.com/dotnet/sdk/actions/runs/12013646895 |
|
To consider backporting to 9.0.1xx, what we would need is a better description / understanding of what scenario is broken. My understanding is that the issue is with NuGet packages that have an asset type of Thanks. |
|
There is no Anyway, it seems like we are fine with the current state so no additional backport is needed as much as we care. Thanks! |
Fixes #40015
Tested locally with a project manifesting the issue (throwing
System.InvalidOperationException: Unrecognized AssetType 'resource'), and with the newMicrosoft.NET.Build.Tasks.dllit doesn't happen