Reputation: 29
Can someone help me understand this Visual Studio error message and suggest a fix? I am getting the error message while scaffolding Identity.
This is the error message I get:
There was an error running the selected code generator: 'Error: An assembly specified in the applciation dependencies manifest (Intacct.deps.json) has already been found but with a different file extension: package: 'Microsoft.VisualStudio.Web.CodeGeneration.Design', version: '3.1.0' path: 'lib/net461/dotnet-aspnet-codegenerator-design.exe' previously found assembly: 'C:\MyPath\Users\MyUser.nuget\packages\microsoft.visualstudio.web.codegeneration.design\3.1.0\lib\netcoreapp3.1\dotnet-aspnet-codegenerator-design.dll
Upvotes: 2
Views: 1921
Reputation: 1
Only reinstall package.
Upvotes: 0
Reputation: 31
The issue was occurred due to the NuGet manager already has a reference for Microsoft.VisualStudio.Web.CodeGeneration.Design
. in the C:\Users\Lenovo\.nuget\packages\microsoft.visualstudio.web.codegeneration.design\3.1.1\
folder in C drive.
As well as the reference was also available in the Project package
Follow the below steps to resolve the error,
Microsoft.visualstudio.web.codegeneration.design(3.1.1)
packageUpvotes: 3