2015-12-29 19:06:10 +00:00
|
|
|
.\" Automatically generated by Pandoc 1.15.1
|
|
|
|
.\"
|
|
|
|
.hy
|
2016-06-14 13:42:21 +00:00
|
|
|
.TH "DOTNET\-NEW" "1" "June 2016" "" ""
|
|
|
|
.SS NAME
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
dotnet\-new \-\- Create a new sample .NET Core project
|
2016-06-14 13:42:21 +00:00
|
|
|
.SS SYNOPSIS
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
2016-06-14 13:42:21 +00:00
|
|
|
dotnet new [\-\-type] [\-\-lang]
|
|
|
|
.SS DESCRIPTION
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
2016-06-14 13:42:21 +00:00
|
|
|
The \f[C]dotnet\ new\f[] 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.
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
|
|
|
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:
|
|
|
|
.IP "1." 3
|
2016-06-14 13:42:21 +00:00
|
|
|
A \f[C]Program.cs\f[] (or \f[C]Program.fs\f[]) file that contains a
|
|
|
|
sample "Hello World" program.
|
2015-12-29 19:06:10 +00:00
|
|
|
.IP "2." 3
|
2016-06-14 13:42:21 +00:00
|
|
|
A valid \f[C]project.json\f[] file.
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
|
|
|
After this, the project is ready to be compiled and/or edited further.
|
2016-06-14 13:42:21 +00:00
|
|
|
.SS Options
|
|
|
|
.PP
|
|
|
|
\f[C]\-l\f[], \f[C]\-\-lang\ [C#|F#]\f[]
|
|
|
|
.PP
|
|
|
|
Language of the project.
|
|
|
|
Defaults to \f[C]C#\f[].
|
|
|
|
\f[C]csharp\f[] (\f[C]fsharp\f[]) or \f[C]cs\f[] (\f[C]fs\f[]) are also
|
|
|
|
valid options.
|
|
|
|
.PP
|
|
|
|
\f[C]\-t\f[], \f[C]\-\-type\f[]
|
|
|
|
.PP
|
|
|
|
Type of the project.
|
|
|
|
Valid values for C# are:
|
|
|
|
.IP \[bu] 2
|
|
|
|
\f[C]console\f[]
|
|
|
|
.IP \[bu] 2
|
|
|
|
\f[C]web\f[]
|
|
|
|
.IP \[bu] 2
|
|
|
|
\f[C]lib\f[]
|
|
|
|
.IP \[bu] 2
|
|
|
|
\f[C]xunittest\f[]
|
|
|
|
.PP
|
|
|
|
Valid values for F# are:
|
|
|
|
.IP \[bu] 2
|
|
|
|
\f[C]console\f[]
|
|
|
|
.SS EXAMPLES
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
\f[C]dotnet\ new\f[]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
2016-06-14 13:42:21 +00:00
|
|
|
Drops\ a\ sample\ C##\ project\ in\ the\ current\ directory.
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
\f[C]dotnet\ new\ \-\-lang\ f##\f[]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Drops\ a\ sample\ F##\ project\ in\ the\ current\ directory.
|
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
\f[C]dotnet\ new\ \-\-lang\ c##\f[]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Drops\ a\ sample\ C##\ project\ in\ the\ current\ directory.
|
2016-01-05 02:25:15 +00:00
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.PP
|
|
|
|
dotnet\-run(1)
|
2016-01-05 02:25:15 +00:00
|
|
|
.SH AUTHORS
|
2016-06-14 13:42:21 +00:00
|
|
|
Microsoft Corporation dotnetclifeedback\@microsoft.com.
|