Extension Compile error ToolVersion

Hi,

Im trying to import an .dll file ive created in visual studio 2019 as an extention in my outsystems project. 

First ive created an class library project and builded it. Then i added the .dll to the resources of my newly created extention. After that I added the functions as actions.

Now im trying to publish the extention the my personal enviroment but i get the following error:


.NET Compilation.

Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.


Ive tried to override the toolversion number, but that doesnt seem to solve the issue. 


Does someone happen to have an solution for this? Currently my extention has one very basic action. 


Indesh wrote:

Hi,

Im trying to import an .dll file ive created in visual studio 2019 as an extention in my outsystems project. 

First ive created an class library project and builded it. Then i added the .dll to the resources of my newly created extention. After that I added the functions as actions.

Now im trying to publish the extention the my personal enviroment but i get the following error:


.NET Compilation.

Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="4.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=291333.


Ive tried to override the toolversion number, but that doesnt seem to solve the issue. 


Does someone happen to have an solution for this? Currently my extention has one very basic action. 


Hello Indesh,

I believe this is an error from your C# code. Try this solution: https://stackoverflow.com/questions/20886391/vs-2012-project-failed-to-build-because-of-missing-toolset

Best regards,

Miguel Marçal

Hello Indesh,

It seems like the problem source is your source file that prevents the compilation to be completed. 

I faced the same issue and here is what I did : 

Click the Edit Source Code.Net icon in your Extension to open the C# Source file  

Right -Click your project -> Properties 

A window will pop up, and change Target Framework to (.Net Framework 4.7.2).

Return Back to your Extension and try to republish it. 

PS: I have also changed the ToolVersion to 4 instead of 12. 

Happy Coding :) 

Best Regards 

Wishes your issue will be solved 

Amani Elhussein 

Solution.PNG

Thank you, it worked for me.. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.