I'm using VS2017 on a brand new ASP.net core web application (version 1.1) and when I try to add 'api controller with actions using entity framework' I get the following error message:
There was an error running the selected code generator: 'Version for package 'Microsoft.VisualStudio.Web.CodeGeneration.Tools' could not be resolved.'
I've googled a bit and found a few suggestions, one of which was to add a CLI tool reference in the .csproj file, so I have added the following:
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools"
Version="1.0.1" />
</ItemGroup>
This version matched the installed version according to the NuGet package manager. However the problem still persists. Any suggestions on how to fix this please?