The tools version "14.0" is unrecognized

Ask general questions here.
cs97jjm3
Posts: 44
Joined: Mon Jan 14, 2019 4:30 pm

The tools version "14.0" is unrecognized

Post by cs97jjm3 » Wed Dec 16, 2020 9:56 am

I have had to move to a new machine for recording...


all my solutions not have The tools version "14.0" is unrecognized any ideas....
ranorex.png
You do not have the required permissions to view the files attached to this post.

robd.cognex
Posts: 1
Joined: Tue Dec 22, 2020 9:06 am

Re: The tools version "14.0" is unrecognized

Post by robd.cognex » Tue Dec 22, 2020 9:16 pm

I just ran into the same issue. For me installing the Visual Studio 2015 build tools did the trick.
https://www.microsoft.com/en-nz/downloa ... x?id=48159

User avatar
Stub
Posts: 515
Joined: Fri Jul 15, 2016 1:35 pm

Re: The tools version "14.0" is unrecognized

Post by Stub » Mon Jan 04, 2021 10:13 am

Have you installed the Microsoft Build Tools 2017, and specifically the .NET Framework Developer Tools Pack v4.6.2? Ranorex is very poor at getting that installed correctly.

cs97jjm3
Posts: 44
Joined: Mon Jan 14, 2019 4:30 pm

Re: The tools version "14.0" is unrecognized

Post by cs97jjm3 » Thu Jan 21, 2021 8:53 am

Hello Ranorex support came up with a solution...
Line #2 should read as follows:
• <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
You should only need to change the "14.0" to "4.0" for the ToolsVersion as seen above. You can always create a new blank solution and copy from that solution's project if needed. Do not copy all of the contents of the csproj though or you will break your project. If you would like to learn more about the structure and usage of a csproj file, I have included a link below:
• Microsoft Developer Network documentation
o To create a minimal MSBuild project file
https://docs.microsoft.com/en-us/visual ... oject-file



ps i did not have visual studio installed

YvesL
Certified Professional
Certified Professional
Posts: 38
Joined: Mon Jan 13, 2020 2:20 pm

Re: The tools version "14.0" is unrecognized

Post by YvesL » Wed Nov 30, 2022 2:27 pm

I had the same problem after installing Ranorex Studio on another comp that didn't have the right version of tools available.

I solved the issue by 'upgrading' my solutions from C#6 back to C#5:
Menu "Tools" => "Project upgrade"

The version of Tools requested by each project is stored in the file <projectname>.csproj:
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">