dotnet-installer/src/dotnet/commands/dotnet-new
Enrico Sada 7b0117ac85 Update fsharp templates for preview4 with latest msbuild style (#4836)
* update web template

* add test build of fsharp/web template

* align fsharp/xunittest template

* add test for all template projects

* align fsharp/console template to #4821

* align fsharp/lib template to #4821

* align fsharp/mstest template to #4821

* align fsharp/xunittest template to #4821

* fix shortened test directory path (was same for c# test)

* try fix ci failure
2016-11-28 00:45:38 -08:00
..
CSharp_Console 02->2 2016-11-04 10:30:00 -07:00
CSharp_Lib 02->2 2016-11-04 10:30:00 -07:00
CSharp_Mstest Bug fixes (#4810) 2016-11-24 00:48:54 -08:00
CSharp_Web Remove Exclude from Compile/Embeddedresource 2016-11-23 10:16:44 -08:00
CSharp_Xunittest Bug fixes (#4810) 2016-11-24 00:48:54 -08:00
FSharp_Console Update fsharp templates for preview4 with latest msbuild style (#4836) 2016-11-28 00:45:38 -08:00
FSharp_Lib Update fsharp templates for preview4 with latest msbuild style (#4836) 2016-11-28 00:45:38 -08:00
FSharp_Mstest Update fsharp templates for preview4 with latest msbuild style (#4836) 2016-11-28 00:45:38 -08:00
FSharp_Web Update fsharp templates for preview4 with latest msbuild style (#4836) 2016-11-28 00:45:38 -08:00
FSharp_Xunittest Update fsharp templates for preview4 with latest msbuild style (#4836) 2016-11-28 00:45:38 -08:00
Program.cs add F# templates to dotnet new (#4789) 2016-11-23 22:57:54 -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)