问题描述
有人知道我可以使用Angular或Aurelia生成可在Visual Studio 2015中运行的ASP.NET Core应用的脚手架生成器吗?
Does anyone know of a scaffolding generator I can use to generate ASP.NET Core apps in Angular or Aurelia that will work in Visual Studio 2015?
'dotnet new'和yeoman生成器很棒,但是它们以VS 2017格式支持应用程序.
The 'dotnet new' and yeoman generators are great, but they scaffold applications in VS 2017 format.
我想使用VS 2015,我真的想像那些生成器一样适当地搭建我的应用程序.
I would like to use VS 2015 and I would really like to scaffold my app properly, like those generators do.
推荐答案
好吧,我在GitHub上为Aurelia找到了一个:
Well, I found one for Aurelia on GitHub:
它具有适用于6种不同类型应用程序的支架-3种使用ES2015,3种使用TypeScript.ASP.NET Core框架使用project.json将项目设置为VS 2015格式.我只需要稍微调整一下,因为我使用的是ASP.NET Core的更高版本,并且因为我想针对.NET Framework 4.6而不是针对基础框架针对.NET Core.但是脚手架是一个很好的工具,文档也很好.
It has scaffolding for 6 different types of apps - 3 using ES2015 and 3 using TypeScript. The ASP.NET Core skeletons set up the project in VS 2015 format with a project.json. I needed to tweak it just a little because I was using a later version of ASP.NET Core and because I wanted to target the .NET Framework 4.6 rather than targeting .NET Core for the base framework. But the scaffold is a good one and the docs are good too.
显然,这本身不是生成器.这是一个可以克隆或下载的GitHub存储库.
To be clear this is not a generator, per se. It is a GitHub repository that can be cloned or downloaded.
尽管如此,我仍然没有为Angular找到任何东西.如果有人对Angular有所了解,请发出提示.
I still have not found anything for Angular though. If anyone knows of something for Angular, please chime in.
谢谢,丹尼斯
这篇关于ASP.NET Core脚手架生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!