Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 457
SliverNinja - MSFT Avatar asked May 15 '12 21:05

SliverNinja - MSFT


1 Answers

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.
like image 188
Gabe Avatar answered Sep 26 '22 06:09

Gabe