dotnet-installer/src/dotnet/commands/dotnet-new
2016-09-23 16:14:03 -05:00
..
CSharp_Console Merge branch 'rel/1.0.0-preview2' into merge_preview2_to_rel100 2016-09-02 14:53:16 -07:00
CSharp_Lib Remove whitespace from dotnet-new C# library template 2016-09-22 17:50:33 -04:00
CSharp_MSBuild Update Microsoft.NETCore.Sdk to 1.0.0-alpha-20160923-4. 2016-09-23 16:14:03 -05:00
CSharp_nunittest eeeek! (sorry, wrong dependency version edited) 2016-08-03 22:06:17 +01:00
CSharp_Web Update versions of EF and scaffolding tools 2016-08-31 14:42:29 -07:00
CSharp_xunittest Merge branch 'rel/1.0.0-preview2' into merge_preview2_to_rel100 2016-09-02 14:53:16 -07:00
FSharp_Console Merge branch 'rel/1.0.0-preview2' into merge_preview2_to_rel100 2016-09-02 14:53:16 -07:00
FSharp_Lib Add missing comma to F# lib project.json 2016-07-12 15:33:18 -07:00
Program.cs Updating versions in a few places that did not exist in the preview2 branch. 2016-09-02 15:01:59 -07:00
README.md Update F# dotnet-new templates for Preview 2 (Enrico Sada rebase) 2016-08-31 11:26:41 -07: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)