How to fix 'Could not load file or assembly Microsoft.VisualStudio.Web.CodeGeneratio.Utils'
By FoxLearn 2/18/2024 9:21:09 AM 270
This post shows you how to solve ASP.NET Core Scaffolding does not work in Visual Studio.
here was an error running the selected code generator: 'Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Web.CodeGeneration.Utils, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. at Microsoft.VisualStudio.Web.CodeGeneration.Design.Program.Main(String[] args)'
To solve the problem, you can right click on your project, then select Manage Nuget Packages.
Next, Search Microsoft.VisualStudio.Web.CodeGeneratio.Utils, then install it.
If you can't install, You should install the missing libraries notified by Visual Studio.
Right click on your project, then select Properties.
Next, Select Application tab, then change your target framework to new version.
Note that the library version used must be similar to the target framework you have chosen.
- How to use CORS in ASP.NET Core
- How to Send Emails in ASP.NET Core
- How to Run Background Tasks in ASP.NET Core with Hosted Services
- Implementing Scheduled Background Tasks in ASP.NET Core with IHostedService
- Creating an Web API in ASP.NET Core
- 8 Essential Tips to Protect Your ASP.NET Core Application from Cyber Threats
- Implementing Caching in ASP.NET Core
- Building a Custom Request Pipeline with ASP.NET Core Middleware
Categories
Popular Posts
11 Things You Didn't Know About Cloudflare
12/19/2024