【问题标题】:How to fix the error - The target "_CopyBinDeployableAssemblies" does not exist in the project?如何修复错误 - 项目中不存在目标“_CopyBinDeployableAssemblies”?
【发布时间】:2018-07-12 00:46:03
【问题描述】:

我正在尝试构建一个使用 MVC 4.0 创建的项目。 'AllowAnonymous' 属性存在错误,因为构建服务器没有安装 MVC 4.0。于是,我开始安装MVC 4.0,但是安装程序提示我先安装Visual Studio 10.0 SP1,所以我安装了VS 10.0 SP1,然后安装了MVC 4.0。与“AllowAnonymous”属性相关的错误在下一次构建后消失了。但现在我收到一条错误消息 - 项目中不存在目标“_CopyBinDeployableAssemblies”。我尝试了一些在堆栈溢出时发现的解决方案,建议

  1. 正在导入项目 Microsoft.Application.Web.Targets 和 Microsoft.Web.Publishing.Targets。
  2. 使用http://go.microsoft.com/fwlink/?LinkId=253458 的exe 安装/修复。

但到目前为止没有任何效果。

请帮帮我。

【问题讨论】:

标签: visual-studio-2010 asp.net-mvc-4 build msbuild tfsbuild


【解决方案1】:

我设法通过在项目的 .csproj 文件中添加一个空的目标标记来解决此错误:

<Target Name="_CopyBinDeployableAssemblies"></Target>

在 stackoverflow itelf 上对类似问题的回复中找到了这个:

Why do I get the error "The target GatherAllFilesToPublish does not exist"?

【讨论】:

    猜你喜欢
    • 2011-06-08
    • 2015-11-11
    • 2016-12-23
    • 1970-01-01
    • 1970-01-01
    • 2015-12-21
    • 2022-10-05
    • 2021-12-03
    • 2019-11-03
    相关资源
    最近更新 更多