Attention: .NET Core on Linux is provided as an Early Adopter Product (EAP) feature only. It is being made available to allow you to
test and provide feedback on the new capabilities. Be aware that file locking does not work in all instances, and may cause
exceptions or the ignoring of file locks. We will continue the development of this feature and provide additional interfaces
via patch updates and future releases. Please contact
Micro Focus SupportLine if you require further clarification.
The commands you use to build and publish a COBOL application that targets .NET Core are very similar to the commands you
would use to build any COBOL application. You need to ensure that you specify the following:
- The publish target.
- The SelfContained parameter set to true or false to indicate whether you are publishing for a self-contained or framework-dependent
deployment.
- The RuntimeIdentifier parameter specifying the target platform. Valid run-time identifiers that are supported by
Visual COBOL for developing COBOL applications for .NET Core are shown in
.NET Core Known Issues and Restrictions.
For example, to do a restore, rebuild, and publish operation for a self-contained deployment to 64-bit Linux you could run
the following command:
msbuild project-name.cblproj
/t:restore;rebuild;publish
/p:Configuration=Release;SelfContained=true;RuntimeIdentifier=linux-x64