Code Monkey home page Code Monkey logo

angular-cli.dotnet's Introduction

angular-cli.dotnet

dotnet new template for angular-cli and ASP.Net core

Install

Download the nuget package
Run dotnet new -i angular-cli.dotnet.<Version>.nupkg

C:\Projects\angular-cli.dotnet>dotnet new --install angular-cli.dotnet.latest.nupkg
Templates                       Short Name              Language            Tags
----------------------------------------------------------------------------------------------------
Angular-cli + Asp.Net Core      angular-cli.dotnet      C#, TypeScript      Angular-cli/Asp.Net Core
Console Application             console                 [C#], F#            Common/Console
Class library                   classlib                [C#], F#            Common/Library
Unit Test Project               mstest                  [C#], F#            Test/MSTest
xUnit Test Project              xunit                   [C#], F#            Test/xUnit
ASP.NET Core Empty              web                     [C#]                Web/Empty
ASP.NET Core Web App            mvc                     [C#], F#            Web/MVC
ASP.NET Core Web API            webapi                  [C#]                Web/WebAPI
Solution File                   sln                                         Solution

Examples:
    dotnet new mvc --auth None --framework netcoreapp1.1
    dotnet new classlib --framework netstandard1.4
    dotnet new --help

Update

Run dotnet new -i angular-cli.dotnet.<Version>.nupkg again

Uninstall

Run dotnet new --debug:reinit

Use

Run dotnet new angular-cli.dotnet -n {Your Solution Name} -o {Path to the new Solution}
It will create a VS 2017 solution containing an Angular web site used for development and an ASP.Net core project used to serve the application in production.

Angular application

Under AngularSpa folder, the Angular application was created by the angula-cli tool.
Run npm install to install dependencies.
Then you can start it with npm start, the application is compiled with AOT and support the Hot Module Replacement (HMR) to speed up your development.

ASP.Net Core

Under Server folder, the ASP.Net Core project is used to deploy the application. Run dotnet pubish, it will compile the Angular application to the wwwroot folder.
If you want to test the deployment just build the project in debug, in will compile the Angular application to wwwroot as well.

Build from sources

Run make.cmd on windows

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.