dotnet-installer/src/dotnet/commands/dotnet-new
2016-12-20 20:11:41 +05:30
..
CSharp_Console use Sdks attribute in dotnet new templates (#4916) 2016-12-04 22:31:58 -08:00
CSharp_Lib use Sdks attribute in dotnet new templates (#4916) 2016-12-04 22:31:58 -08:00
CSharp_Mstest Updating the template to point to the rc packages of MSTest. 2016-12-20 20:11:41 +05:30
CSharp_Web Merge rel/1.0.0-preview4 back into rel/1.0.0 (#4974) 2016-12-09 00:30:02 -08:00
CSharp_Xunittest use Sdks attribute in dotnet new templates (#4916) 2016-12-04 22:31:58 -08:00
FSharp_Console Merge rel/1.0.0-preview4 back into rel/1.0.0 (#4974) 2016-12-09 00:30:02 -08:00
FSharp_Lib Merge rel/1.0.0-preview4 back into rel/1.0.0 (#4974) 2016-12-09 00:30:02 -08:00
FSharp_Mstest Updating the template to point to the rc packages of MSTest. 2016-12-20 20:11:41 +05:30
FSharp_Web Merge rel/1.0.0-preview4 back into rel/1.0.0 (#4974) 2016-12-09 00:30:02 -08:00
FSharp_Xunittest Merge rel/1.0.0-preview4 back into rel/1.0.0 (#4974) 2016-12-09 00:30:02 -08:00
xlf Update xlf with new/removed/modified strings 2016-12-16 13:32:48 -08:00
LocalizableStrings.cs More string changes. 2016-12-05 10:47:10 -08:00
Program.cs More string.Format fixes 2016-12-05 11:09:05 -08: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)