-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running selected code generator. The given assembly or codebase was invalid. #586
Comments
@lee-alderdice, I was able to repro the issue with the csproj you provided. I had to make the following modification to get scaffolding to work: Remove the below package references: <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration" Version="1.1.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore" Version="1.1.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGenerators.Mvc" Version="1.1.1" />
The above packages are brought in transitively by Let me know if this helps. |
Hi @prafullbhosale that has worked. Thank you so much. I have been looking on the web for a long time to get to this point. |
Sorry to reopen this but I find once again that the ability to scaffold controllers and views has disappeared and the error message No executable ... dotnet-aspnet-codegenerator. I am on VS2017 15.3.4 I have checked on VS2017 developer community and can't find anything that might intimate what is wrong at this time. |
This should be fixed in the latest versions. |
Hi,
I am running into the error below when scaffolding a controller and views in VS2017. My csproj is at the bottom. I am not sure how to fix this, so far I have tried:
Any help greatly appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: