Name
Dotnet-publish-Package The application and all its dependencies into a folder, get ready to publish
Profile
' dotnet publish [--framework]
[--runtime] [--build-base-path] [--output]
[--version-suffix] [--configuration]
[<project>]`
Describe
dotnet Publish compiles the application by reading the dependencies specified in the Project.json file, and publishes the result set files to a directory.
Depending on the type of portable application, the resulting directory will contain the following:
Portable Applications-Application intermediate language (IL) Code and association dependencies for all applications.
Local dependent portable applications-supported platforms with each local dependency on the subdirectories above.
Self-contained applications-the same as above and attached to the entire runtime for the target platform.
Options
[Project]
dotnet publish work requires access to the Project.json file. If it is not called by the specified [project], the Project.json in the current directory will be the default value.
If no project.json can be found, dotnet publish will throw an error.
-F,--framework [FID]
Publishes a given framework identity (FID) application. If not specified, the FID is read from the Project.json. When there is no valid framework found, the command throws an error. If more than one valid framework is found, the command publishes all valid frames.
-R,--runtime [RID]
Publishes a given run-time application.
-B,--build-base-path [DIR]
The temporary output directory.
-O,--output
Specifies the path where the directory is to be placed. If not specified, it will be the default portable application for./bin/[configuration]/[framework]/or self-contained applications for./bin/[configuration]/[framework]/[runtime].
--version-suffix [Version_suffix]
Defines what * is replaced in the Version field in the Project.json file.
-C,--configuration [debug| Release]
The configuration at the time of publishing. The default value is Debug.
Example
dotnet Publish
Use the framework found in Project.json to publish an application. If Project.json contains a runtimes node, the release RID is the current platform.
dotnet Publish ~/projects/app1/project.json
Publishes the application using the specified Project.json.
dotnet Publish--framework netcoreapp1.0
Publish the current application using the netcoreapp1.0 framework.
dotnet Publish--framework netcoreapp1.0--runtime osx.10.11-x64
Publish the current application using the netcoreapp1.0 framework and OS X 10.10 Runtime. This RID must exist in the Runtimes node in Project.json.
"Recommended"
1.. Net Core Graphics Verification Code
2.. NET core configuration file loading with di injection configuration data
3. Detailed introduction to ZKEACMS for. Net Core
4. Sharing. NET MVC using forms to validate instance code
5. How do I make HTTP requests under. NET Core?
6. Example tutorials for running zkeacms on CentOS