Does a huge amount of warnings make C# compile time longer?

前端 未结 3 2088
梦谈多话
梦谈多话 2020-12-30 04:50

We have a big solution with thousands of warnings. Would it take less to compile the solution if I removed all of the warnings (either manually or using a tool)?

I\

3条回答
  •  一个人的身影
    2020-12-30 05:11

    You should not silent the warnings. Most of the warnings indicates problems with your code. You should look into your code and fix them.

    Processing all the warning should cost compile time (The compieler need to send the warnings to visual studio, more warnings should mean more output data. But I don't know how big the impact is). But if you fix the warnings you propably fix bugs, too.

提交回复
热议问题