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

后端 未结 30 1082
旧时难觅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:34

    I want to expand on Sasse's answer.

    To fix the problem with Visual Studio 2015 Update 2 I had to build each project one at a time and look at the output window after each build.

    One project gave me

    "The type or namespace name 'SomeNamespace' does not exist in the namespace 'BeforeSomeNamespace' (are you missing an assembly reference?)".

    There was no error in the Error List window but the assembly had a yellow warning sign under "References".

    I then saw that the referencing project targeted 4.5.1 and the referenced project 4.6.1. Changing 4.6.1 to 4.5.1 allowed the overall build to succeed.

提交回复
热议问题