我正在使用 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 Enterprise 2015、Microsoft.AspNet.Mvc 5.2.3、EntityFramework 6.1.3