dotnet-installer/src/dotnet/commands/dotnet-new
2016-08-26 22:39:40 -07:00
..
CSharp_Console Responding to PR feedback 2016-07-22 12:11:01 -07:00
CSharp_Lib Updating CoreFX, CoreCLR, Roslyn, CoreSetup to stable versions. 2016-06-14 03:14:53 -05:00
CSharp_MSBuild Update the Sdk version to the latest build. 2016-08-23 13:44:07 -05:00
CSharp_nunittest eeeek! (sorry, wrong dependency version edited) 2016-08-03 22:06:17 +01:00
CSharp_Web [Fixes #3421] Made dotnet new templates generate portable pdbs 2016-06-09 12:05:54 -07:00
CSharp_xunittest Update xunit dependencies for CSharp_xunittest template 2016-08-25 15:02:52 +02:00
FSharp_Console Don't print arguments in F# console app 2016-07-07 14:00:42 -07:00
FSharp_Lib Add missing comma to F# lib project.json 2016-07-12 15:33:18 -07:00
Program.cs Merge remote-tracking branch 'refs/remotes/origin/feature/msbuild' 2016-08-16 18:30:52 -07:00
README.md clean up and added nunit command to README 2016-08-03 22:06:17 +01:00

% DOTNET-NEW(1) % Microsoft Corporation dotnetclifeedback@microsoft.com % June 2016

NAME

dotnet-new -- Create a new sample .NET Core project

SYNOPSIS

dotnet new [--type] [--lang]

DESCRIPTION

The dotnet new command provides a convenient way to initialize a valid .NET Core project and sample source code to try out the Command Line Interface (CLI) toolset.

This command is invoked in the context of a directory. When invoked, the command will result in two main artifacts being dropped to the directory:

  1. A Program.cs (or Program.fs) file that contains a sample "Hello World" program.
  2. A valid project.json file.

After this, the project is ready to be compiled and/or edited further.

Options

-l, --lang [C#|F#]

Language of the project. Defaults to C#. csharp ( or cs ) and fsharp ( or fs ) are also valid options.

-t, --type

Type of the project. Valid values for C# are:

  • console
  • web
  • lib
  • xunittest
  • nunittest

Valid values for F# are:

  • console
  • lib

EXAMPLES

dotnet new

Drops a sample C# project in the current directory.

dotnet new --lang f#

Drops a sample F# project in the current directory.

dotnet new --lang c#

Drops a sample C# project in the current directory.

SEE ALSO

dotnet-run(1)