I'm currently using VS2017 for developing .NET Core MVC Web
When I tried to create a new Controller from Add > Controller, I got this error
Error
There was an error running the code generator: "The specified deps.json
[C:\Users\xxx\Documents\Visual Studio 2017\Projects\bin\MCD\Debug\netcoreapp1.1
\[project name].deps.json] does not exist"
When I explored the solution folder, I found that there are two folder in the bin directory, Debug
and MCD
.
bin
|
- Debug
- netcoreapp1.1
- ...
- [project name].deps.json
|
- MCD <- this is where the scaffolding looks for deps.json
I noticed that I also got the same problem when debugging .NET Console app (which I created from dotnet new console
cli command) from Visual Studio Code. The same problem faced in .deps.json could not be found
Are there any .NET Core configs that I missed? Or this is a bug in .NET Core? I remember I didn't configure anything prior from installing my .NET Core in VS2017