10

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?

No_or_yes
  • 665
  • 1
  • 6
  • 21
  • 1
    Uninstalling it wasn't a great idea, that took out the msbuild targets as well. The VS uninstaller wasn't written to support SharpDevelop. – Hans Passant Feb 25 '14 at 13:52
  • 1
    @HansPassant: if you could write down a quick anser with what you said I'de be happy to chose your answer. I've installed VS Express to have the MSBuild target back and it work like a charme again! – No_or_yes Feb 25 '14 at 14:32
  • Just write your own answer and mark it. Installing VS when you said you didn't like it would not have been my advice. – Hans Passant Feb 25 '14 at 14:37
  • Perhaps you could try to edit the ToolsVersion in the project file, to set it to one of the available versions. – Govert Feb 25 '14 at 17:56
  • @Govert: That was a solution too, but wasn't sure if I'd loose some features – No_or_yes Feb 26 '14 at 10:47
  • Same error in Blend,VS 2012 – shalin Oct 22 '14 at 06:28

1 Answers1

19

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

Daniel
  • 15,944
  • 2
  • 54
  • 60