问题描述
前几天我安装了 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.
我不知道这里的问题是什么,我在强大的谷歌上找不到任何东西,这让我有点紧张.
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
定义在:
The missing target _CopyBinDeployableAssemblies
is defined in:
$(MSBuildExtensionsPath)MicrosoftVisualStudiov10.0WebApplicationsMicrosoft.WebApplication.targets
我通过向损坏的项目文件添加 元素解决了这个问题.
I solved the problem by adding an <Import>
element to the broken project files.
因此,如果您依赖于上述目标,则可以通过在项目文件中查找以下 来找到:
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)MicrosoftVisualStudiov10.0WebMicrosoft.Web.Publishing.targets" />
您还需要导入:
<Import Project="$(MSBuildExtensionsPath)MicrosoftVisualStudiov10.0WebApplicationsMicrosoft.WebApplication.targets" />
这篇关于目标“_CopyBinDeployableAssemblies"项目中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!