在 Visual Studio 2013 年,构建成功但发布失败,没有任何细节

in Visual Studio 2013, Build succeeds but Publish fails with no details

我继承了一个以前由一位所有者管理的小型网络应用程序。它在我之前已经发布了很多次,但我自己做却遇到了问题。

尝试发布:

1>------ Build started: Project: Foo.Logic, Configuration: Release Any CPU ------
1>      Foo.Logic -> C:\workspace\Foo\Foo.Logic\bin\Release\Foo.Logic.dll
2>------ Build started: Project: Foobar, Configuration: Release Any CPU ------
2>      Foobar -> C:\workspace\Foo\Foobar\bin\Foobar.dll
3>------ Publish started: Project: Foobar, Configuration: Release Any CPU ------
========== Build: 2 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

我试过对输出进行诊断,但这并没有提供发布失败原因的任何详细信息。根本没有写入任何文件,我在输出中也没有收到任何关于它尝试发布的消息。

我已经尝试了很多 links, both here 和其他地方。

到目前为止我 done/tried 的事情:

Publish settings: Publish method: File System Configuration: Release - Any CPU

我与 webapp 的前任所有者谈过,他说这是由于 Visual Studio 模板损坏造成的。

解决方法是构建然后 xcopy 到目标文件系统。 我之前的解决方法是让我的同事(他在发布 F# webapps 时没有遇到这个问题)帮我发布。

我通过删除 Visual Studio 中 obj\Release 下的所有文件和文件夹解决了这个问题。

我认为这可能是由于对项目不再需要的某些文件的旧引用造成的。