外部VS2013的生成错误"错误MSB4019:导入的项目<路径>没有找到与QUOT; [英] External VS2013 build error "error MSB4019: The imported project <path> was not found"

查看:570
本文介绍了外部VS2013的生成错误"错误MSB4019:导入的项目<路径>没有找到与QUOT;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个项目,通过命令行,而不是内部的Visual Studio 2013注,我已经从Visual Studio 2012年至2013年该项目建立精细的IDE内部升级我的项目。另外,我完全先卸载VS2012,重新启动,并安装了VS2013。唯一版本的Visual Studio,我已经是2013旗舰版。

I am building a project through the command line and not inside Visual Studio 2013. Note, I had upgraded my project from Visual Studio 2012 to 2013. The project builds fine inside the IDE. Also, I completely uninstalled VS2012 first, rebooted, and installed VS2013. The only version of Visual Studio that I have is 2013 Ultimate.

ValidateProjects:
    39>path_to_project.csproj(245,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    39>Done Building Project "path_to_project.csproj" (Clean target(s)) -- FAILED.

下面是两行中的问题:

<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />

原第二行是V10.0,但我手动更改,为12.0。

The original second line was v10.0, but I manually changed that to v12.0.

$(VSToolsPath)伸长从我看到的V11.0(VS2012)文件夹,这显然是不存在了。该路径应该是到12.0。

$(VSToolsPath) elongates from what I see to the v11.0 (VS2012) folder, which obviously is not there anymore. The path should have been to v12.0.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications\

我想在我的系统环境变量表指定VSToolsPath,但外部构建工具仍然使用V11.0。我试图寻找通过注册表,并且想出了什么。

I tried specifying VSToolsPath in my system environment variables table, but the external build utility still uses v11.0. I tried searching through the registry and that came up with nothing.

可悲的是,我看不出有什么简单的方法来使用的确切命令行。我用一个构建工具。

Sadly, I do not see any easy way to get the exact command line used. I use a build tool.

思考?

推荐答案

我使用一个外部构建工具。想想有点像蚂蚁,如果我理解正确的产品,只是一个商业版本。我必须与制造商的答案。

I was using an external build utility. Think of something like Ants, if I understand the product correctly, just a commercial version. I had to contact the manufacturer for the answer.

事实证明,有项目,DEVSTUDIO_NET_DIR一个全球性的宏。我不得不改变路径,净那里。他们列出各种视觉工作室的版本为行动,它通过我了,但条条大路通回到幕后,一个全局变量。我会列出作为对产品的缺陷,如果我有我的方式,除非我失去了一些东西在我的理解。校正路径有固定的构建问题。

As it turns out, there is a global macro in the project, DEVSTUDIO_NET_DIR. I had to change the path to .Net there. They list various visual studio versions as "Actions", which through me off, but all roads lead back to that one global variable behind the scenes. I would list that as a defect against the product, if I had my way, unless I am missing something in my understanding. Correcting the path there fixed the build problem.

这篇关于外部VS2013的生成错误&QUOT;错误MSB4019:导入的项目&LT;路径&GT;没有找到与QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆