Cannot Use Visual Studio 2017 Add Controller Feature #789

Closed
opened 2025-08-09 17:17:41 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @jkruer01 on 5/1/2017

If you open the project file in Visual Studio right click the controllers folder and chose add new Controller, you will get an error that states "No executable found matching command dotnet-aspnet-codegenerator".

In order to fix this issue, the following lines need to be added to the CSProj file:

    <ItemGroup>
        <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" />
    </ItemGroup>

Stack Overflow Question for Reference:
http://stackoverflow.com/questions/41450148/no-executables-found-matching-command-dotnet-aspnet-codegenerator

*Originally created by @jkruer01 on 5/1/2017* If you open the project file in Visual Studio right click the controllers folder and chose add new Controller, you will get an error that states "No executable found matching command dotnet-aspnet-codegenerator". In order to fix this issue, the following lines need to be added to the CSProj file: ```xml <ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" /> </ItemGroup> ``` Stack Overflow Question for Reference: http://stackoverflow.com/questions/41450148/no-executables-found-matching-command-dotnet-aspnet-codegenerator
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#789
No description provided.