Enable-RazorGenerator is not recognized even with Package and Extension installed

Feb 7, 2013 at 6:21 PM
Edited Feb 7, 2013 at 6:22 PM

I have installed the RazorGenerator Extension and the RazorGenerator.MVC package but when I try the command Enable-RazorGenerator I get the following error:

The term 'Enable-RazorGenerator' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is cor
rect and try again.
At line:1 char:22
  • Enable-RazorGenerator <<<<
    • CategoryInfo : ObjectNotFound: (Enable-RazorGenerator:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
I restarted VS 2012 and nothing ... I checked if the Extension was installed and it is and the version is 1.5.

Any idea what might be wrong?

Thank You,
Feb 7, 2013 at 6:24 PM
Could you check if the package has init.ps1? You're looking for ~\packages\RazorGenerator.Mvc.1.5.0\tools\init.ps1? Additionally you could try running that explicitly and see if the command pops up. If it does, it might be flakiness in NuGet
Feb 7, 2013 at 6:35 PM

It was a problem with missing init.ps1. I just solved it.

Thank You,