Skip to content

A basic ASP.NET Core template to use with dotnet CLI

Notifications You must be signed in to change notification settings

fcartu/AspNetCoreTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspNetCoreTemplate

A basic ASP.NET Core template to use with dotnet CLI.

This template create a complete solution for an ASP.NET MVC Core application, including a xUnit test project. You can use the resulting project inside Visual Studio for Mac, Visual Studio Code and Visual Studio 2017.

File structure:

+-- AspNetCore.WebxUnit.sln
+-- src
|   +-- AspNetCore.WebxUnit
|       +-- Features
|           +-- Home
|           +-- Shared
|       +-- wwwroot
|       +-- AspNetCore.WebxUnit.csproj
|       +-- Program.cs
|       +-- Startup.cs
|       +-- appsettings.Development.json
|       +-- appsettings.json
+-- test
|   +-- AspNetCore.WebxUnit.Test
|       +-- AspNetCore.WebxUnit.Test.csproj
|       +-- UnitTest1.cs

How to install it

In order to install this template in your computer, you must have installed .NET Core. If you want to check your dotnet core installation, open a terminal and run:

dotnet --version

Next, clone this repo:

git clone https://github.com/fcartu/AspNetCoreTemplate.git

And run this command:

Be aware to change the path of the project for your own path.

dotnet new --install /Users/fcartu/github/AspNetCoreTemplate/Template

After installed you will see the new template in your template list.

list of installed templates

Uninstall

The current version of DotNet CLI does not support an uninstall command, so you must reset your templates back to the default list

Warning: this command will set back your dotnet new list to "factory defaults".

dotnet new --debug:reinit

About

A basic ASP.NET Core template to use with dotnet CLI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published