dotnet-installer/src/dotnet/commands/dotnet-new
Eric Erhardt 6468b14e1d Move to CoreFX build rc2-23901
Update .exe's project.json Target Framework from dnxcore50 to netstandardapp1.5.
Update .dll's project.json Target Framework from dnxcore50 to netstandard1.3.

Adding workaround for DataContractSerialization to src\dotnet\project.json to fix crossgen issue.
Build 23901 has a dependency issue that doesn't allow the runtime.any.System.Private.DataContractSerialization
package to be restored. When we move to a new build of CoreFX we should take this workaround out.
2016-03-03 16:41:55 -06:00
..
CSharp_Console Move to CoreFX build rc2-23901 2016-03-03 16:41:55 -06:00
FSharp_Console Move to CoreFX build rc2-23901 2016-03-03 16:41:55 -06:00
Program.cs Remove project.json in template to avoid restore 2016-02-03 22:19:41 -08:00
README.md Everything in the same project 2016-02-01 14:56:32 -08:00

% DOTNET-NEW(1) % Zlatko Knezevic zlakne@microsoft.com % January 2016

NAME

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

SYNOPSIS

dotnet new

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

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.

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)