dotnet-installer/src/dotnet/commands/dotnet-new
2016-06-11 04:29:58 +00:00
..
CSharp_Console Updating CoreFx, CoreClr, Roslyn, CoreSetup to rc3-24210-10, rc3-24210-10, beta1-20160610-04, rc3-3004459-00 respectively 2016-06-11 04:29:58 +00:00
CSharp_Lib [Fixes #3421] Made dotnet new templates generate portable pdbs 2016-06-09 12:05:54 -07:00
CSharp_Web [Fixes #3421] Made dotnet new templates generate portable pdbs 2016-06-09 12:05:54 -07:00
CSharp_xunittest Updating CoreFx, CoreClr, Roslyn, CoreSetup to rc3-24210-10, rc3-24210-10, beta1-20160610-04, rc3-3004459-00 respectively 2016-06-11 04:29:58 +00:00
FSharp_Console Updating CoreFx, CoreClr, Roslyn, CoreSetup to rc3-24210-10, rc3-24210-10, beta1-20160610-04, rc3-3004459-00 respectively 2016-06-11 04:29:58 +00:00
Program.cs Add C# Lib and xunittest templates 2016-06-09 08:06:03 -07:00
README.md [Fixes #3255] Added a web template to dotnet new 2016-06-08 11:31:08 -07:00

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

NAME

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

SYNOPSIS

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

DESCRIPTION

The new command provides a convenient way to initalize a valid .NET Core project and sample source code to try out the 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 sample "Hello World" program that exists in Program.cs ( or Program.fs ) file.
  2. A valid project.json file

Note: As a workaround for packages not being on NuGet.org yet (since this is prelease software) the dotnet-new command will also drop a NuGet.config file. This will be removed at RC2 release.

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

Options

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

Language of project. Defaults to C##. Also csharp ( fsharp ) or cs ( fs ) works.

-t, --type

Type of the project. Valid values are "console" and "web".

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)