No executables found matching command 'dotnet-aspnet-codegenerator'"

后端 未结 13 2314
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-15 02:16

When trying to add a Controller in an ASP.NET Core project using Visual Studio 15 Enterprise with Update 3, I get the error below:

\"The was an error running

13条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 02:52

    I just typed in Linux:

    ~/.dotnet/tools/dotnet-aspnet-codegenerator razorpage -m Movie -dc RazorPagesMovieContext -udl -outDir Pages/Movies --referenceScriptLibraries
    

    So, I did not start with 'dotnet' (my current version: 2.2.300)

    I do not like this solution, but it worked.

提交回复
热议问题