为什么我的 T4 脚手架没有错误地失败了?

Why is my T4 Scaffolding failing without error?

我正在使用 ASP.NET MVC 构建应用程序。脚手架失败了,但没有向我显示失败原因的任何输出。

PM> get-scaffolder

Name                                Description                                                                                                                               Package                       
----                                -----------                                                                                                                               -------                       
T4Scaffolding.CustomScaffolder      Creates an entirely new scaffolder with a PS1 script and a T4 template                                                                    T4Scaffolding.Core.VS2015 1...
T4Scaffolding.CustomTemplate        Allows you to modify the T4 template rendered by a scaffolder                                                                             T4Scaffolding.Core.VS2015 1...
BasicModel                          Starts at the Model and Scaffolds everything needed to get the model displayed                                                                                          
Controller                          Enter a description of Controller here                                                                                                                                  
ControllerUnitTest                  Enter a description of ControllerUnitTest here                                                                                                                          
Core                                Enter a description of Core here                                                                                                                                        
EmptyModel                          Scaffold an empty Model                                                                                                                                                 
Module                              Creates default module controller, service, model, view model and views                                                                                                 
Service                             Enter a description of Service here                                                                                                                                     
ServiceUnitTest                     Enter a description of ServiceUnitTest here                                                                                                                             
Validator                           Enter a description of Validator here                                                                                                                                   
ValidatorUnitTest                   Enter a description of ValidatorUnitTest here                                                                                                                           
ViewModel                           Enter a description of ViewModel here                                                                                                                                   


PM> Scaffold CustomScaffolder BlankCanvas
PM> Scaffold CustomScaffolder BlankCanvas -Verbose
Found template 'DefaultPs1Script' at 'C:\Users\R\Source\Repos\Chase Nexus\packages\T4Scaffolding.Core.VS2015.1.0.3\tools\CustomScaffolder\DefaultPs1Script.ps1.t4'
Found template 'DefaultT4Template' at 'C:\Users\R\Source\Repos\Chase Nexus\packages\T4Scaffolding.Core.VS2015.1.0.3\tools\CustomScaffolder\DefaultT4Template.cs.t4'
PM> 

昨天晚上用了一小会儿,今天早上开机的时候又坏了。我之前卸载了包 T4Scaffolding.Core.VS2015,它是提供我正在使用的脚手架的 NuGet 包。同样的脚手架在我同事的机器上工作得很好。

至此,无论我尝试使用哪个脚手架,输出都是一样的。它没有显示任何错误,但也没有创建它应该创建的文件。

我正在使用: Visual Studio 企业 2015, Microsoft.AspNet.Mvc 5.2.3, EntityFramework6.1.3

问题好像和包T4Scaffolding.Core.VS2015 version 1.0.3.

有关

为了解决这个问题,我卸载了上面的包,并安装了 1.0.1 版本。