Warning When Installing Latest NuGet Package 6.0.0-preview.7.21412.2
See original GitHub issueFile a bug
The following warning is generated when the latest Microsoft.VisualStudio.Web.CodeGeneration
(6.0.0-preview.7.21412.2
) is installed:
warning NU1603: Microsoft.VisualStudio.Web.CodeGeneration 6.0.0-preview.7.21412.2 depends on System.Collections.Immutable (>= 6.0.0-preview.7.21377.12) but System.Collections.Immutable 6.0.0-preview.7.21377.12 was not found. An approximate best match of System.Collections.Immutable 6.0.0-preview.7.21377.19 was resolved.
We were tracking down another warning with this issue: https://github.com/dotnet/aspnetcore/issues/35300
That seems to be addressed and this issue is now the only one that appears in my NuGet restore.
Include your code
NA
Include stack traces
NA
Include provider and version information
Microsoft.VisualStudio.Web.CodeGeneration.Design/Microsoft.DotNet.MSIdentity version: 6.0.0-preview.7.21412.2
Target framework: (e.g. .NET 5.0) net6.0
Operating system: Windows 10
IDE: (e.g. Visual Studio 2019 16.3) Visual Studio 2022 Preview 3.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Microsoft.CodeAnalysis.Razor has Apparent Invalid ...
Attempt to install a NuGet package that depends on Microsoft.CodeAnalysis.Razor . ... Razor 6.0.0-preview.7.21378.6 depends on Microsoft.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I still get this and similar warnings in RC2.
warning NU1603: Microsoft.VisualStudio.Web.CodeGeneration.Templating 6.0.0-rc.2.21511.1 depends on Microsoft.AspNetCore.Razor.Language (>= 6.0.0-rc.2.21470.25) but Microsoft.AspNetCore.Razor.Language 6.0.0-rc.2.21470.25 was not found. An approximate best match of Microsoft.AspNetCore.Razor.Language 6.0.0-rc.2.21480.10 was resolved.
warning NU1603: Microsoft.VisualStudio.Web.CodeGeneration.Templating 6.0.0-rc.2.21511.1 depends on Microsoft.CodeAnalysis.Razor (>= 6.0.0-rc.2.21470.25) but Microsoft.CodeAnalysis.Razor 6.0.0-rc.2.21470.25 was not found. An approximate best match of Microsoft.CodeAnalysis.Razor 6.0.0-rc.2.21480.10 was resolved.
warning NU1603: Microsoft.VisualStudio.Web.CodeGeneration 6.0.0-rc.2.21511.1 depends on Microsoft.Extensions.DependencyInjection (>= 6.0.0-rc.2.21470.23) but Microsoft.Extensions.DependencyInjection 6.0.0-rc.2.21470.23 was not found. An approximate best match of Microsoft.Extensions.DependencyInjection 6.0.0-rc.2.21480.5 was resolved.
warning NU1603: Microsoft.DotNet.Scaffolding.Shared 6.0.0-rc.2.21511.1 depends on System.Collections.Immutable (>= 6.0.0-rc.2.21470.23) but System.Collections.Immutable 6.0.0-rc.2.21470.23 was not found. An approximate best match of System.Collections.Immutable 6.0.0-rc.2.21480.5 was resolved.
warning NU1603: Microsoft.VisualStudio.Web.CodeGeneration 6.0.0-rc.2.21511.1 depends on System.Collections.Immutable (>= 6.0.0-rc.2.21470.23) but System.Collections.Immutable 6.0.0-rc.2.21470.23 was not found. An approximate best match of System.Collections.Immutable 6.0.0-rc.2.21480.5 was resolved.
cc @tdykstra @deepchoudhery hopefully this will be fixed for RC2