Yeoman generator for ASP.NET Core apps
npm install generator-wsu-fais.csproj based) both LTS (1.0) and Current (1.1) versions
brew install node for Mac OS X, choco install nodejs for Windows OS
npm install -g yo
npm install -g bower
npm install -g generator-aspnet
yo aspnet
yo aspnet shows a wizard for generating a new ASP.NET Core app
yo aspnet --help shows flags and other configurable options
bower install script to install Bower managed dependencies. You can skip the installation process by passing the --skip-install option to the generator, e.g. yo aspnet --skip-install. This should allow for a better experience when Development has been enabled.
LTS and Current version of runtime. The LTS version is enabled by default (or enforced by --version-lts option). You can switch to Current version at any time by passing --version-current option when invoking generator: yo aspnet --version-current.
bash
yo aspnet [projecttype [applicationname] [uiframework]]
`
The valid project types are:
- web for Empty Web Application
- console for Console Application
- mvc for Web Application
- mvcbasic for Web Application Basic
- webapi for Web API Application
- nancy for Nancy ASP.NET Application
- classlib for Class Library
- mstest MSTest Test project (MSTest)
- xunit xUnit Test project (xUnit.net)
- fsharp_web for F# Empty Web Application
- fsharp_console for F# Console Application
- fsharp_classlib for F# Class Library
- fsharp_webapi for F# Web API Application
- fsharp_mvcbasic for F# Web Application Basic
- fsharp_mstest for F# Unit Test project (MSTest)
- fsharp_xunit for F# xUnit Test project (xUnit.net)
The valid UI framework types are:
- bootstrap for Bootstrap (this is the default and does not have to be specified explicitly)
- semantic for Semantic UI
> Example: yo aspnet mvcbasic "my semantic app" semantic will create a "Web Application Basic" project called "my semantic app" using the Semantic UI framework.
> Example: yo aspnet mvcbasic "my bootstrap app" OR yo aspnet mvcbasic "my bootstrap app" bootstrap will create a "Web Application Basic" project called "my bootstrap app" using the Bootstrap framework.
Sub Generators
The alphabetic list of available sub generators (_to create files after the project has been created_):
* aspnet:nugetconfig
* aspnet:webconfig
Note: files generated are created in the working directory, no conventions are forced
Return to top
$3
Creates a new NuGet.config file.
Example:
`
yo aspnet:nugetconfig
`
Produces NuGet.config
Return to top
$3
Creates a new Web Config file
Example:
`
yo aspnet:webconfig
`
Produces web.config`