How to fix 'Could not load file or assembly Microsoft.VisualStudio.Web.CodeGeneratio.Utils'
By FoxLearn 2/18/2024 9:21:09 AM 207
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.
- Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager'
- HTTP Error 500.30 ASP.NET Core app failed to start
- How to Use IExceptionHandler in ASP.NET Core
- How to custom exception handling in ASP.NET Core
- How to create a custom AuthorizeAttribute in ASP.NET Core
- How to manually resolve a type using the ASP.NET Core MVC
- Differences Between AddTransient, AddScoped, and AddSingleton
- How to add security headers to your ASP.NET Core
Categories
Popular Posts
Spica Admin Dashboard Template
11/18/2024