问题
I've been developing a vb.net project using Excel-DNA for the last few months using SharpDevelop and all of a sudden, when I open my project as usual, I have this error:
The tools version "12.0" is unrecognized. Available tools versions are "2.0", "3.5", "4.0". C:\path\to\file.vbproj
I'm gessing the falty codes is this part:
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
. As far as I can go in my Mercurial history it has always had this value.
Any idea of what could have created the problem? I had installed Visual Studio to test it out and see if the investement was worth it and uninstalled it lately, could it have something to do with that?
回答1:
Looks like the MSBuild .target files necessary to support ToolsVersion 12.0 were uninstalled together with Visual Studio.
However, they are also available as a standalone download: Microsoft Build Tools 2013
来源:https://stackoverflow.com/questions/22015916/sharpdevelop-error-the-tools-version-12-0-is-unrecognized