I am teaching a Cobol class and today we downloaded/installed Visual Studio 2022 Community, 17.14.2. We also installed MicroFocus 2022_100. No errors appeared but when I create a project, I don't have the int/gnt template I need to create our Cobol program. Students with an older version of VS 17.12.4 are not having this issue.
Any help to resolve this would be great.
Thanks!
Susan
------------------------------
Susan Wilson
Professor
Indian Hills Community College Foundation, Inc.
IA US
------------------------------
Hi Susan,
Microsoft made a breaking change to the Visual Studio installer that affects all versions beginning with 17.13.4 which causes the COBOL templates not to be recognized.
We are producing a fix for this problem, but it is not currently in any product release.
The following information is from a KB article on the subject:
There is a workaround that allows you to use Visual Studio 2022 version 17.13.4 or higher:
- Close all instances of the Visual Studio 2022 IDE
- Open Developer Command Prompt for VS 2022
- Issue these commands to determine the location of the PkgDef file of the COBOL extension (i.e. CBLPRJ.PKGDEF):
CD %DEVENVDIR%\\EXTENSIONS
DIR CBLPRJ.PKGDEF /S
- Note the last command will return the location where CBLPRJ.PKGDEF is located. Here is an example:
Directory of C:\\Program Files\\Microsoft Visual Studio\\2022\\XXXX\\Common7\\IDE\\Extensions\\YYYY
where XXXX is the edition of Visual Studio 2022 (e.g. Community, Professional, etc.)
where YYYY is a random string as the name of the subfolder where CBLPRJ.PKGDEF is located
- Issue this command to change directory to the subfolder where CBLPRJ.PKGDEF is located:
CD YYYY
where YYYY is the name of the subfolder identified from previous step
- Issue this command to edit CBLPRJ.PKGDEF in Notepad:
NOTEPAD CBLPRJ.PKGDEF
- Search for the following line and delete it:
"TemplatesDir"="\\\\"
- Search for the same line a second time and delete it
- Search for the following line and delete it:
"TemplatesDir"="\\.\\NullPath"
- Click File > Save
- Close Notepad
- Issue this command to apply the changes to the COBOL extension in Visual Studio:
DEVENV /UPDATECONFIGURATION
- Close the command prompt
- Launch Visual Studio
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
Hi Susan,
Microsoft made a breaking change to the Visual Studio installer that affects all versions beginning with 17.13.4 which causes the COBOL templates not to be recognized.
We are producing a fix for this problem, but it is not currently in any product release.
The following information is from a KB article on the subject:
There is a workaround that allows you to use Visual Studio 2022 version 17.13.4 or higher:
- Close all instances of the Visual Studio 2022 IDE
- Open Developer Command Prompt for VS 2022
- Issue these commands to determine the location of the PkgDef file of the COBOL extension (i.e. CBLPRJ.PKGDEF):
CD %DEVENVDIR%\\EXTENSIONS
DIR CBLPRJ.PKGDEF /S
- Note the last command will return the location where CBLPRJ.PKGDEF is located. Here is an example:
Directory of C:\\Program Files\\Microsoft Visual Studio\\2022\\XXXX\\Common7\\IDE\\Extensions\\YYYY
where XXXX is the edition of Visual Studio 2022 (e.g. Community, Professional, etc.)
where YYYY is a random string as the name of the subfolder where CBLPRJ.PKGDEF is located
- Issue this command to change directory to the subfolder where CBLPRJ.PKGDEF is located:
CD YYYY
where YYYY is the name of the subfolder identified from previous step
- Issue this command to edit CBLPRJ.PKGDEF in Notepad:
NOTEPAD CBLPRJ.PKGDEF
- Search for the following line and delete it:
"TemplatesDir"="\\\\"
- Search for the same line a second time and delete it
- Search for the following line and delete it:
"TemplatesDir"="\\.\\NullPath"
- Click File > Save
- Close Notepad
- Issue this command to apply the changes to the COBOL extension in Visual Studio:
DEVENV /UPDATECONFIGURATION
- Close the command prompt
- Launch Visual Studio
------------------------------
Chris Glazier
Principal Technical Support Specialist
Rocket Forum Shared Account
------------------------------
Thank you! We'll give that a try!
Update: This works wonderful. Thank you so much!!!
Susan
------------------------------
Susan Wilson
Professor
Indian Hills Community College Foundation, Inc.
IA US
------------------------------