How to find reason of failed Build without any error or warning

后端 未结 30 1073
旧时难觅i
旧时难觅i 2020-11-29 20:01

I have a WebApplication which contains reference to WCF services.

While building using Visual Studio 2010, Build fails without any error or warning. However building

30条回答
  •  孤城傲影
    2020-11-29 20:30

    I just ran into a similar situation. In my case, a custom action (from the MSBuildVersioning package available on Nuget.org - http://www.nuget.org/packages/MSBuildVersioning/) which appeared in the csproj file's BeforeBuild target was failing without triggering any error message in the normal place.

    I was able to determine this by setting the "MSBuild project build output verbosity" (in the latest Visual Studio's Tools tab [Path: Tools > Options > Build and Run]) to "Diagnostic" as shown below. This then showed that the custom action (in my case HgVersionFile) was what had failed.

    Screen capture from Visual Studio showing the modified setting.

提交回复
热议问题