Tuesday, June 19, 2018

Can't add controller in Visual Studio 2017

Hey guys, i'm having a really weird issue where at first I did not have the option to create a controller in my projects. I've since done research and found solutions that worked with VS 2015 and older versions but for me personally, all I have now is the option to create a controller ... but it does not actually do anything.

I've updated all my NuGet packages and I manually added references in my csproj. Alas, no bueno.

<ItemGroup> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0-msbuild3-final"/> <DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" /> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" /> </ItemGroup> 

Here are the threads that I used to troubleshoot.

https://stackoverflow.com/questions/32901637/add-controller-option-is-missing-in-visual-studio-2015

https://stackoverflow.com/questions/41450148/no-executables-found-matching-command-dotnet-aspnet-codegenerator

Any advice would be greatly appreciated. I'm still fairly new with visual studio (it's been 3 months).

Can't add controller in Visual Studio 2017 Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team