-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Could not upgrade projects to new 2.2.100 sdk getting conflict warnings #2721
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
Comments
What does your csproj look like? |
If you can provide a binary log, that would help us investigate. Please read the link though, a binary log includes a lot of detailed information so be sure that you are comfortable sharing it. |
I have a repro with binary log in the root ( https://github.com/NinoFloris/Repro-dotnet-sdk-issues-2721 I chose However the real cause in the current state would be impossible to track down for most people, as I demonstrated effectively in my opening post... |
I think the problem more-or-less boils down to this: #2420. Microsoft.AspNetCore.App does not yet flow transitively across ProjectReference. You have to have a reference to this in every project which uses it (directly or transitively). It's something we hope to address in 3.0. |
But why weren't those warnings present while we had the same proj content during 2.1? Edit: this repro was lifted from a project where lib was actually an entry point project and console was a test project. You're saying that even in those common cases such a workaround is the only option? Or are you saying that just the error handling is bad due to this missing framework reference. @natemcmaster |
That's a great question. I don't know why.
Yes. |
…0190907.17 (#2721) - Microsoft.NETCore.App - 5.0.0-alpha1.19457.17 Dependency coherency updates - System.CodeDom - 5.0.0-alpha1.19457.4 (parent: Microsoft.NETCore.App) - System.Security.Cryptography.ProtectedData - 5.0.0-alpha1.19457.4 (parent: Microsoft.NETCore.App) - System.Text.Encoding.CodePages - 5.0.0-alpha1.19457.4 (parent: Microsoft.NETCore.App)
Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label. |
This issue will now be closed since it has been labeled 'stale' without activity for 30 days. |
Could not upgrade all projects to new 2.2.100 sdk, as we got conflict warnings for among others
What all of these packages have in common is that they list a 2.2.0 release on nuget.org
https://www.nuget.org/packages/Microsoft.Extensions.Options/2.2.0 and if you look carefully they are all at Downloads: 0.
Which is why msbuild detailed logs gives errors like these
Could not resolve this reference. Could not locate the assembly "Microsoft.Extensions.Options, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60".
Now that seems like a problem
The text was updated successfully, but these errors were encountered: