目标“_CopyBinDeployableAssemblies”项目不存在 [英] The target "_CopyBinDeployableAssemblies" does not exist in the project

查看:296
本文介绍了目标“_CopyBinDeployableAssemblies”项目不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Visual Studio 2010 SP1的另一天,现在当我尝试发布我的应用程序,我收到这个错误在我所有的项目。

I installed Visual Studio 2010 SP1 the other day and now when i try to "publish" my apps i get this error on ALL of my projects.

The target "_CopyBinDeployableAssemblies" does not exist in the project.

我不知道这里有什么问题,我在所有强大的Google上找不到任何东西,我有点紧张。

I have no idea what the problem is here and i find nothing on the all mighty Google and that makes me a bit nervous.

任何人都可以在这里指向正确的方向,或者其他人也有同样的问题?因为它发生在我的所有项目中,所以我有点惊讶于这个问题。

Can anyone point me in the right direction here or maybe somebody else has the same problem? Because it happens in all of my projects so i'm kind of amazed im alone with this problem.

这些网站是ASP.NET Web应用程序,其中一些是混合的Web表单/ MVC,但只有Webforms。 1个网站是超级简单,几乎没有引用,我仍然得到错误。

The sites are ASP.NET Web Applications, some of them are mixed Web forms/MVC but one is only Webforms. 1 site is super mega simple with almost no references and i still get the error.

推荐答案

我也经历了安装Visual Studio 2010 SP1 Beta。

I also experienced this problem after installing Visual Studio 2010 SP1 Beta.

缺少的目标 _CopyBinDeployableAssemblies 定义在:

$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets

我通过在破坏的项目文件中添加一个< Import> 元素来解决问题。

I solved the problem by adding an <Import> element to the broken project files.

所以如果您对上述目标有所降低,您可以通过查找以下< Import> 在您的项目文件中:

So if you have a depdendency on the above targets, which you can find out by looking for the following <Import> in your project files:

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets" />

您还需要导入:

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

这篇关于目标“_CopyBinDeployableAssemblies”项目不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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