This topic describes the steps you will need to perform to create a .NET Core project if you want to take advantage of SQL
support.
- Create your .NET Core project as described in
To create a .NET Core project.
- Install the required NuGet package for the SQL support:
- In Solution Explorer, right-click your project and click
Manage NuGet Packages.
The Visual Studio NuGet Package Manager is displayed.
- Click the
Browse tab.
- Select
Micro Focus Visual Studio Offline Packages from the
Package source drop-down menu.
- Select
MicroFocus.COBOL.SqlCLR.Runtime from the list of available packages, then click
Install.
- Click
OK on the
Preview Changes dialog box, then click
I Accept on the
License Acceptance dialog box.
The
MicroFocus.COBOL.SqlCLR.Runtime package and any dependencies are added to the current project, listed under
References in Solution Explorer.
Note: If you need to install support for a provider other than the SQL Server .NET Core provider you will need to install an additional
NuGet package. See
Supported .NET Core ADO Providers for more information.
- Use the
SQL page of the project properties to set your SQL directives as you would normally. See
To set COBOL project properties and
SQL Properties for more information.