Visual Studio cannot find custom tool RazorGenerator
I've installed the NuGet package for RazorGenerator.mvc
and then run the shell command Enable-RazorGenerator
and get the following message:
Exception calling "RunCustomTool" with "0" argument(s): "The custom tool 'RazorGenerator' failed. The method or operation is not implemented."At \packages\RazorGenerator.Mvc.1.3.2.0\tools\RazorGenerator.psm1:77 char:40+ $_.Object.RunCustomTool <<<< () + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ComMethodTargetInvocation
I also tried right-clicking and selecting "Run Custom Tool" and it provides a dialog stating it cannot find the custom tool RazorGenerator
on the system.
What am I missing?
Solution 1:
I had that same problem too and I realized that along with the package for the solution you will also need to install the Visual Studio Extension called RazorGenerator
- Go to Tools, then Extension Manager
- Search for Razor Generator
- Click the Download button.
- Once the install has completed, restart Visual Studio.