vb.net SharpDevelop 错误:“无法识别工具版本 '12.0'...”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22015916/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 16:53:38  来源:igfitidea点击:

SharpDevelop error: "The tools version '12.0' is unrecognized..."

vb.netsharpdevelop

提问by No_or_yes

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:

在过去的几个月里,我一直在使用 SharpDevelop 使用 Excel-DNA 开发 vb.net 项目,突然之间,当我像往常一样打开我的项目时,出现以下错误:

The tools version "12.0" is unrecognized. Available tools versions are "2.0", "3.5", "4.0". C:\path\to\file.vbproj

无法识别工具版本“12.0”。可用的工具版本为“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.

我正在猜测错误代码是这部分: <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">. 就我的 Mercurial 历史而言,它一直具有这种价值。

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?

知道是什么导致了这个问题吗?我已经安装了 Visual Studio 来测试它,看看投资是否值得,最近卸载了它,这与它有关系吗?

回答by Daniel

Looks like the MSBuild .target files necessary to support ToolsVersion 12.0 were uninstalled together with Visual Studio.

看起来支持 ToolsVersion 12.0 所需的 MSBuild .target 文件已与 Visual Studio 一起卸载。

However, they are also available as a standalone download: Microsoft Build Tools 2013

但是,它们也可作为独立下载使用:Microsoft Build Tools 2013