. NET Core CLI Tools Documentation Dotnet-publish

Source: Internet
Author: User
Tags dotnet


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


  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.