ASP.NET核心脚手架生成器

时间:2017-06-14 17:30:10

标签: angular asp.net-core aurelia

有没有人知道我可以用来在Angular或Aurelia中生成可在Visual Studio 2015中运行的ASP.NET核心应用程序的脚手架生成器?

新网站#'和yeoman发电机很棒,但是它们以VS 2017格式搭建应用程序。

我想使用VS 2015,我真的想要正确搭建我的应用程序,就像那些生成器一样。

2 个答案:

答案 0 :(得分:1)

好吧,我在GitHub上为Aurelia找到了一个:

Skeleton-navigation for Aurelia

它有6种不同类型的应用程序的脚手架 - 3个使用ES2015,3个使用TypeScript。 ASP.NET Core骨架使用project.json以VS 2015格式设置项目。我需要稍微调整它,因为我使用的是更高版本的ASP.NET Core,因为我想要针对.NET Framework 4.6而不是针对基础框架的.NET Core。但脚手架很好,文档也很好。

编辑:要明确这不是发电机本身。它是一个可以克隆或下载的GitHub存储库。

我仍然没有为Angular找到任何东西。如果有人知道Angular的某些内容,请加入。

谢谢, 丹尼斯

答案 1 :(得分:0)

This works for both VS2015 and older pre-RC4 versions of .NET tooling

You can use Yeoman generator.First, make sure to install: .NET Core SDK 1.1 and Node.js Version 6 (or Later).

To install the Yeoman Templates for this, open command prompt and run:

npm install -g yo generator-aspnetcore-spa

Then create a folder/directory for the project you want to create. cd into your project directory and run the Yeoman command below:

yo aspnetcore-spa

Yeoman will auto-fetch dependencies and packages for you.

To run your project, execute the following command within the project folder:

dotnet run