I have created a library of T4 scaffolding templates that i've used successfully in previous versions of visual studio, but now having upgraded my projects to VS 2015 I get the following error when opening the "Package Manager Console":
Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
At C:\MyPath\packages\T4Scaffolding.1.0.8\tools\init.ps1:7 char:1
+ Set-DefaultScaffolder -Name Repository -Scaffolder T4Scaffolding.EFRe ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
+ FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
It seems that EnvDTE.DTE
may not be supported out of the box anymore?
Is there anyway of resolving this issue or is there a new mechanism in VS 2015 that can run my existing T4 templates files.
My projects build and run fine.