You create a project for a COBOL application that will be deployed to
.NET in essentially the same way that you create a project for any other COBOL application; the only difference is in the project
template that you use. For a COBOL application that is to be deployed to
.NET you must use one of the templates whose name ends with "(.NET)".
If you need to include SQL support in your project there are additional steps you need to perform. See
Configuring a .NET Project for SQL Support for more information.
Note: The project templates for .NET are not installed automatically with
Visual COBOL. If the .NET templates are not available you must install them before proceeding. See
To install missing features from the IDE for instructions.
To create a .NET project
- Click
.
- Type
.NET in the
Search field.
- Select
COBOL from the first dropdown menu (which contains
All languages by default).
.NET templates are listed.
- Select the template that you want to use.
Note: If there are no .NET templates you need to install Visual Studio's .NET SDK component. See the
.NET
section of
Additional Software Requirements for more information.
- Click
Next.
- In the
Project name field, type a name for the project.
- In the
Location field, browse to the directory in which to store the project.
- Click
Create.
Note:
- The project is created to target .NET 6.
- You can also create a .NET project using the
dotnet new command. See
Creating a .NET Project Using the Command Line for more information.
- If you will be deploying the project to an Azure .NET environment you need to modify the settings of the CALLFH and CALLSORT
directives in order to avoid dependency issues with the C runtime. See
Deploying to Azure .NET in
.NET Known Issues and Restrictions for more information.