The new version of Microsoft.VisualStudio.Web.CodeGeneration.Design isn't compatible with dotnet core 3
See original GitHub issueI 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:
- Created 4 years ago
- Reactions:7
- Comments:7 (2 by maintainers)
Top 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 >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
If someone else still facing this issue (which isn’t an issue) here’s how I solve it
netcoreapp3.1
instead ofnetcoreapp3.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>
Yes, the expectation is that the tfm, and the package version match. We are looking potential workarounds or updating docs accordingly.
Thanks.