2015-12-29 19:06:10 +00:00
|
|
|
.\" Automatically generated by Pandoc 1.15.1
|
|
|
|
.\"
|
|
|
|
.hy
|
2016-01-07 03:21:36 +00:00
|
|
|
.TH "dotnet-publish" "1" "January 2016" "" ""
|
2015-12-29 19:06:10 +00:00
|
|
|
.SH NAME
|
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
\f[C]dotnet\-publish\f[] \- packs the application and all of its
|
2015-12-29 19:06:10 +00:00
|
|
|
dependencies into a folder getting it ready for publishing
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
dotnet\-publish [\-\-framework] [\-\-runtime] [\-\-output]
|
|
|
|
[\-\-configuration]
|
|
|
|
.PD 0
|
|
|
|
.P
|
|
|
|
.PD
|
|
|
|
[< project >]
|
2015-12-29 19:06:10 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
\f[C]dotnet\-publish\f[] will compile the application, read through its
|
2016-01-05 02:25:15 +00:00
|
|
|
dependencies specified in \f[C]project.json\f[] and publish the
|
2015-12-29 19:06:10 +00:00
|
|
|
resulting set of files to a directory.
|
2016-01-05 02:25:15 +00:00
|
|
|
This directory will contain the assemblies, the runtime as well as the
|
|
|
|
executable version of the application.
|
2015-12-29 19:06:10 +00:00
|
|
|
This directory can then be moved to a different machine and the
|
2016-01-05 02:25:15 +00:00
|
|
|
application will be able to run regardless of existence of any other
|
2015-12-29 19:06:10 +00:00
|
|
|
runtime.
|
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
The native dependencies of the runtime are not packaged with the
|
|
|
|
application.
|
|
|
|
This means that the target machine needs to have the native dependencies
|
|
|
|
installed in order for the application to run.
|
|
|
|
.SH OPTIONS
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
\f[C][project]\f[]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
`dotnet\-publish`\ needs\ access\ to\ `project.json`\ to\ work.\ If\ it\ is\ not\ specified\ on\ invocation\ via\ [project],\ `project.json`\ in\ the\ current\ directory\ will\ be\ the\ default.\ \ \ \ \ If\ no\ `project.json`\ can\ be\ found,\ `dotnet\-publish`\ will\ error\ out.\ `dotnet\-publish`\ command\ also\ requires\ certain\ dependencies\ in\ the\ `project.json`\ to\ work.\ Namely\ the\ `Microsoft.NETCore.Runtime`\ package\ must\ be\ referenced\ as\ a\ dependency\ in\ order\ for\ the\ command\ to\ copy\ the\ runtime\ files\ as\ well\ as\ the\ application\[aq]s\ files\ to\ the\ published\ location.\ \
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
|
|
|
\f[C]\-f\f[], \f[C]\-\-framework\f[] [FID]
|
2016-01-05 02:25:15 +00:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Publish\ the\ application\ for\ a\ given\ framework\ identifier\ (FID).\ If\ not\ specified,\ FID\ is\ read\ from\ `project.json`.\ In\ case\ of\ no\ valid\ framework\ found,\ the\ command\ will\ error\ out.\ In\ case\ of\ multiple\ valid\ frameworks\ found,\ the\ command\ will\ publish\ for\ all\ valid\ frameworks.\
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
|
|
|
\f[C]\-r\f[], \f[C]\-\-runtime\f[] [RID]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
2016-01-05 02:25:15 +00:00
|
|
|
Publish\ the\ application\ for\ a\ given\ runtime.\ If\ the\ option\ is\ not\ specified,\ the\ command\ will\ default\ to\ the\ runtime\ for\ the\ current\ operationg\ system.\ Supported\ values\ for\ the\ option\ at\ this\ time\ are:
|
|
|
|
|
|
|
|
\ \ \ \ *\ ubuntu.14.04\-x64
|
2016-05-26 19:48:16 +00:00
|
|
|
\ \ \ \ *\ ubuntu.16.04\-x64
|
2016-01-05 02:25:15 +00:00
|
|
|
\ \ \ \ *\ win7\-x64
|
|
|
|
\ \ \ \ *\ osx.10.10\-x64
|
2015-12-29 19:06:10 +00:00
|
|
|
\f[]
|
|
|
|
.fi
|
|
|
|
.PP
|
|
|
|
\f[C]\-o\f[], \f[C]\-\-output\f[]
|
2016-01-05 02:25:15 +00:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Specify\ the\ path\ where\ to\ place\ the\ directory.\ If\ not\ specified,\ will\ default\ to\ _./bin/[configuration]/[framework]/[runtime]/_
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
|
|
|
\f[C]\-c\f[], \f[C]\-\-configuration\ [Debug|Release]\f[]
|
2016-01-05 02:25:15 +00:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Configuration\ to\ use\ when\ publishing.\ If\ not\ specified,\ will\ default\ to\ "Debug".
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.SH EXAMPLES
|
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
\f[C]dotnet\-publish\f[]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Publish\ the\ current\ application\ using\ the\ `project.json`\ framework\ and\ runtime\ for\ the\ current\ operating\ system.\
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
\f[C]dotnet\-publish\ ~/projects/app1/project.json\f[]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Publish\ the\ application\ using\ the\ specified\ `project.json`;\ also\ use\ framework\ specified\ withing\ and\ runtime\ for\ the\ current\ operating\ system.\
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
\f[C]dotnet\-publish\ \-\-framework\ dnxcore50\f[]
|
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Publish\ the\ current\ application\ using\ the\ `dnxcore50`\ framework\ and\ runtime\ for\ the\ current\ operating\ system.\
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.PP
|
|
|
|
\f[C]dotnet\-publish\ \-\-framework\ dnxcore50\ \-\-runtime\ osx.10.10\-x64\f[]
|
2016-01-05 02:25:15 +00:00
|
|
|
.IP
|
|
|
|
.nf
|
|
|
|
\f[C]
|
|
|
|
Publish\ the\ current\ application\ using\ the\ `dnxcore50`\ framework\ and\ runtime\ for\ `OS\ X\ 10.10`
|
|
|
|
\f[]
|
|
|
|
.fi
|
2015-12-29 19:06:10 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.PP
|
2016-01-05 02:25:15 +00:00
|
|
|
dotnet\-restore(1), dotnet\-compile(1)
|
|
|
|
.SH AUTHORS
|
2016-01-07 03:21:36 +00:00
|
|
|
Zlatko Knezevic zlakne\@microsoft.com.
|