Does anyone know of a way to view all compiler warnings for a VB.NET project?

前端 未结 4 1502
渐次进展
渐次进展 2021-01-02 11:39

VB.NET has this rather annoying limitation which caps compiler warnings reported at 100.

vbc : warning BC42206: Maximum number of warnings has been exceeded.         


        
4条回答
  •  轮回少年
    2021-01-02 11:59

    You should read Configuring Warnings in Visual Basic and How to: Enable or Disable Compiler Warnings

    For example, you can to the compiler options (under the project build properties) the following line

    warnaserror:42206
    

    this should (I haven't tried it myself...) disable your 100 errors limit.

    On another note, 100 warnings is a very large number. You should probably go over your code, check and fix the reasons to those warnings.

提交回复
热议问题