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

后端 未结 30 938
旧时难觅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:23
    • If solution contains more than one project, try building them one at a time.
    • Try restart Visual Studio.
    • Try restart Computer.
    • Try "Rebuild all"
    • Try "Clean Solution" then remove your "vspscc" files and "vssscc" files and then restart Visual Studio and then "Rebuild All".
    0 讨论(0)
  • 2020-11-29 20:23

    For me, the Target Framework was the issue.

    My project's Target Framework was 4.5.2 and the referenced project's Target Framework was 4.6.1.

    Once I updated my project's Target Framework to 4.6.1, the issue got fixed.

    0 讨论(0)
  • 2020-11-29 20:24

    I've tried all but nothing worked in my case then I've changed these mentioned settings which resolved the issue quite well for me. Try If it could of any help latter viewers. These settings could be vary in your situation but make sure build all the including DLLs with the same config settings you kept initially (mentioned in the image.).

    Cheers!

    0 讨论(0)
  • 2020-11-29 20:25

    I had this same problem and I traced this issue down to the Error List options "Build + Intellisense".

    If this option is selected then no errors are shown in the list. Switch to "Build Only" and the errors appear as expected.

    Its look like a bug in Visual Studio. Restarting the visual studio solved this issue.

    0 讨论(0)
  • 2020-11-29 20:25

    This happened to me after adding a new page to an asp.net project.

    What I did was exclude the page, get it to build again successfully.

    Then I added back the page with all the code commented out. Success.

    Then I uncommented the code bit by bit and then it all worked.

    0 讨论(0)
  • 2020-11-29 20:26

    Build + Intellisense swallowed the error messages. Selecting Build Only displayed them.

    0 讨论(0)
提交回复
热议问题