asp.net - 在 VS 2010 中发布时摆脱 Thumbs.db

标签 asp.net visual-studio-2010 publish

我将发布设置、要部署的项目更改为“此项目中的所有文件”。发布前将 Thumbs.db 复制到临时路径时出错,发布失败。

Error 49 Copying file help\GenderType_help\images\Thumbs.db to obj\Debug\Package\PackageTmp\help\GenderType_help\images\Thumbs.db failed. Could not find file 'help\GenderType_help\images\Thumbs.db'.



我怎样才能摆脱这些不需要的 Thumbs.db 文件来发布。

最佳答案

在我找不到确切答案之后,这就是我为包含复制项目中的所有文件所做的工作。

  • 将要部署的项目更改为 Only files needed to run this application .
  • 将所有文件的构建操作属性更改为 Content

  • 然后将复制项目中的所有项目文件没有项目部署到“此项目中的所有文件”。

    关于asp.net - 在 VS 2010 中发布时摆脱 Thumbs.db,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37461440/

    相关文章:

    python - Redis 从 csv 发布。没有错误但没有收到数据

    visual-studio-2010 - 如何在 Visual Studio 2010 中添加 x64(或任何 CPU)作为构建选项(从控制台应用程序到类库)

    visual-studio-2010 - 错误 MSB4018 : The "<exec>" task failed unexpectedly

    filter - Hugo 从页面包中排除文件类型?

    asp.net - 如何在 Repeater Item 中找到选中的 RadioButton?

    .net - 对象浏览器支持哪些 XML 注释标签

    WCF 发布错误 : Metadata contains a reference that cannot be resolved:

    c# - 多个使用 block c#

    c# - 从 Dropbox 下载文件 C#

    ASP.NET MVC : When should I create custom View Engine