Highlighted
Honored Contributor.
Honored Contributor.
638 views

BUILD problem

Jump to solution

Using Visual Studio 2019 CE and Visual COBOL PE.

I have a series of programs which compile without errors. After a short break I fired up the project in VC and  was confronted with this error message:

''The "MicroFocus.Cobol.BuildTasks.AssignSourceTargetPaths" task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Micro Focus\Visual COBOL\v1.0\MicroFocus.COBOL.BuildTasks.dll. Method 'get_SourceFileExtension' in type 'MicroFocus.COBOL.BuildTasks.CreateCobolManifestResourceName' from assembly 'MicroFocus.COBOL.BuildTasks, Version=16.0.0.0, Culture=neutral, PublicKeyToken=0412c5e0b2aaa8f0' does not have an implementation. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.''

The program in question compiles without errors bu t I cannot run it because of the foregoing error message. I tried a Visual COBOL Repair but this has made no difference.

Seems very strange that this error has only just revealed itself.

 

1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: BUILD problem

Jump to solution

Sorry, the ftp site gets cleaned out monthly so the file at that link had been deleted.

I uploaded the Visual COBOL 5.0 Patch Update 2 installer again.

Please use this link.

View solution in original post

0 Likes
21 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: BUILD problem

Jump to solution

This is a known problem that occurs when Visual Studio 2019 is updated to the 16.3 version. It breaks Visual COBOL 5.0. The fix is to download and apply VC 5.0 Patch Update 2.

Please see the previous post covering this topic here:

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: BUILD problem

Jump to solution

Thanks Chris. However when I click on the link in the other message you posted I get a ''404 File Not Found'' error.

The VC Patch Update 2 page (https://www.microfocus.com/documentation/visual-cobol/vc50pu2/#)  appears to only show documentation so where can I download the Patch?

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: BUILD problem

Jump to solution

Sorry, the ftp site gets cleaned out monthly so the file at that link had been deleted.

I uploaded the Visual COBOL 5.0 Patch Update 2 installer again.

Please use this link.

View solution in original post

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: BUILD problem

Jump to solution

Thanks Chris.

0 Likes
Highlighted
Contributor.
Contributor.

Re: BUILD problem

Jump to solution

I am not sure if this a relate issue.  Visual Studio 16.4 with Enterprise Developer for VS 5.0 installed.  I create a Native Cobol project in VS, and get this strange error that is like the one that was reported:

The "MicroFocus.Cobol.BuildTasks.FindGenericConfigFile" task could not be loaded from the assembly C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Micro Focus\Visual COBOL\v1.0\MicroFocus.COBOL.BuildTasks.dll. Method 'get_SourceFileExtension' in type 'MicroFocus.COBOL.BuildTasks.CreateCobolManifestResourceName' from assembly 'MicroFocus.COBOL.BuildTasks, Version=16.0.0.0, Culture=neutral, PublicKeyToken=0412c5e0b2aaa8f0' does not have an implementation. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

I get the same error after reboot, and attempt to create a new initial project. 

Any suggestions?

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: BUILD problem

Jump to solution

I can only suggest applying the patch that Chris has provided a link for - it worked for me. I don't know whether the fact that we are using different versions of VC will make a difference.

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: BUILD problem

Jump to solution

Yes, you will need to download and install the latest Patch Update for Enterprise Developer from the Supportline Website. If you do not know how to do this then please open up a support ticket.

 

Thanks.

0 Likes
Highlighted
New Member.

Re: BUILD problem

Jump to solution

Hi  @Chris Glazier,

I am having the same problem, but that link is no longer found.

Do you have an updated link I can use? 

Thanks.

0 Likes
Highlighted
Contributor.
Contributor.

Re: BUILD problem

Jump to solution

Try applying the patch for Visual Cobol PE. 

vcvs2019_50.exe is the base install. 

vcvs2019_50_pu02_242792.exe is the patch.

Greg

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: BUILD problem

Jump to solution

the same version have all evaluator for visual cobol.

Chris says he have the update 5.

Why have your evaluator customer not the actual update and access to the update forum?

This is very important to have a stable version for testing the new programs converted from netexpress 5.x

Thanks to open this wall for all, the version is limited to 2200 lines of code and had no runtime licences!!!

0 Likes
Highlighted
Contributor.
Contributor.

Re: BUILD problem

Jump to solution

Hi, 

I write from france this day, 

 I need a support technical nivel 2 or 3 to install correctly 
a free studiant version of MICRO-FOCUS (installed on visual studio 2019)
--> Visual COBOL for Visual Studio Personal Edition - Windows
 
My troubleshooting is
 
Gravité Code Description Projet Fichier Ligne État de la suppression Program Sequence Number Erreur Impossible de charger la tâche "MicroFocus.Cobol.BuildTasks.FindGenericConfigFile" à partir de l'assembly C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Micro Focus\Visual COBOL\v1.0\MicroFocus.COBOL.BuildTasks.dll. La méthode 'get_SourceFileExtension' du type 'MicroFocus.COBOL.BuildTasks.CreateCobolManifestResourceName' de l'assembly 'MicroFocus.COBOL.BuildTasks, Version=16.0.0.0, Culture=neutral, PublicKeyToken=0412c5e0b2aaa8f0' n'a pas d'implémentation. Assurez-vous que la déclaration est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask. tictac 0.  
 
Thank you for you help
Best regards
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.