Reasons for C# projects to rebuild in Visual Studio

前端 未结 5 933
野趣味
野趣味 2021-02-09 05:17

I have a large solution, of some 320 projects, where even small changes to a single web form result in long build times to test/debug a small change. I suspect post-build file

5条回答
  •  时光取名叫无心
    2021-02-09 05:37

    First, check to make sure the references to other projects are PROJECT references and not assembly references.

    Second, check for circular references.

    Third, set the logging verbosity to DIAGNOSTIC and look at the very first line and see why it's rebuilding projects after building the solution for the first time.

    There is lots more that can be checked, but take a look at those 3 things first.

提交回复
热议问题