This topic contains important information about using the latest release to edit .NET COBOL projects created with earlier versions of Visual COBOL.
Release 10.0 comes with support for .NET 8 and with newer versions of the Visual COBOL SDK and the NuGet packages. Earlier versions of the .NET are not supported.
The 9.0 release introduces the following changes:
Building existing .NET COBOL projects created prior to 9.0 might result in build errors. To ensure compatibility for older projects, 9.0 also provides a MicroFocus.COBOL.Runtime metapackage. You can either enable this or add any required new NuGet packages manually to them.
See To package Micro Focus assemblies with a .NET application for details.
Updating the SDK means that projects will reference the MicroFocus.COBOL.Runtime.Core package. This is how you can avoid receiving any build errors due to the change:
You cannot use dotnet commands to work with .NET projects (previously .NET Core projects) that were created using a version of Visual COBOL before 7.0. Instead, you can upgrade them in order to be able to use the dotnet commands.
To upgrade a pre-7.0 project file so that you can use the project with dotnet commands you need to do the following:
<Project Sdk="Microsoft.NET.Sdk">to:
<Project Sdk="MicroFocus.Sdk"
<LanguageTargets
{ "msbuild-sdks": { "MicroFocus.Sdk": "1.0.16" } }
For more information on modifying your .cblproj and global.json files to do this, see Microsoft: How to: Use MSBuild project SDKs.