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.

The new version of Microsoft.VisualStudio.Web.CodeGeneration.Design isn't compatible with dotnet core 3

See original GitHub issue

I just updated the Microsoft.VisualStudio.Web.CodeGeneration.Design package from 3.0.0 to 3.1.0 and the visual studio started showing the following warning message.

Severity	Code	Description	Project	File	Line	Suppression State
Warning	NU1701	Package 'Microsoft.VisualStudio.Web.CodeGeneration.Design 3.1.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.0'. This package may not be fully compatible with your project.	NewsPass.Api	E:\WorkSpace\Projects\NewsPass\newspass-web-api\src\NewsPass.Api\NewsPass.Api.csproj	1	

should I downgrade to 3.0.0?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
AmedMoorecommented, Dec 13, 2019

If someone else still facing this issue (which isn’t an issue) here’s how I solve it

  • Upgrade the dotnet core SDK to 3.1.100
  • Update the target framework of your project to netcoreapp3.1 instead of netcoreapp3.0

to upgrade the target framework through VS Properties -> Application -> Target Framework and select .Net Core 3.1 from the dropdown menu or modify the csproj file directly and set <TargetFramework>netcoreapp3.0</TargetFramework> to <TargetFramework>netcoreapp3.1</TargetFramework>

0reactions
deepchoudherycommented, Dec 13, 2019

Yes, the expectation is that the tfm, and the package version match. We are looking potential workarounds or updating docs accordingly.

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install-Package Microsoft.VisualStudio.Web. ...
Design 7.0.3 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Microsoft.VisualStudio.Web.CodeGeneration.Design 7.0.3 ...
Read more >
Microsoft.VisualStudio.Web.CodeGeneration.Design not ...
NET Core App 3.0 using the 3.1 scaffolder version. I'm using dotnet 3.1.401 on Xubuntu 20.04. Any thoughts? Thank you in advance. EDIT...
Read more >
Microsoft.VisualStudio.Web.CodeGeneration.Design 7.0.9
Version Downloads Last updated 8.0.0‑preview.7.23408.2 887 6 days ago 8.0.0‑preview.6.23360.4 4,597 a month ago 8.0.0‑preview.5.23313.2 4,249 2 months ago
Read more >
There was an error running the selected code generator
1) Go to "Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution..." 2) Select package "microsoft.visualstudio.web.codegeneration.design". 3) ...
Read more >
Version conflict detected when trying to install Microsoft ...
VisualStudio.Web.CodeGeneration.Design 7.0.4 NuGet package in a Telerik UI for ASP.NET Core 2022.3.1109 application, it throws an exception:.
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