question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning When Installing Latest NuGet Package 6.0.0-preview.7.21412.2

See original GitHub issue

File 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
andwicommented, Oct 25, 2021

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.

1reaction
Rick-Andersoncommented, Sep 15, 2021

cc @tdykstra @deepchoudhery hopefully this will be fixed for RC2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found