Building a .NET Core Project Using the Command Line

To use the command line to build a project for a COBOL application that is to be deployed to .NET Core you use the dotnet build command as follows:

dotnet build [project-name.cblproj] 
	 
Note: You can omit the name of the project file if there is only one project file in the current directory.

The dotnet build command includes more options than those shown above. For more information on the dotnet build command see Microsoft: .NET fundamentals - dotnet build.

Example

To build the only project in the current directory using the Release configuration (rather than the default, Debug), run the following command:

dotnet build -c Release