How to prevent FxCop from analyzing auto-generated code?

前端 未结 3 1442
-上瘾入骨i
-上瘾入骨i 2021-02-20 11:27

FxCop (tool for static code analysis) gives me an error while checking code behind of .edmx model. How to prevent FxCop from analyzing auto-generated code (or at least Entity Fr

3条回答
  •  礼貌的吻别
    2021-02-20 12:00

    I've used the /ignoregeneratedcode switch in the project that contained the auto-generated code that I did not want FxCop to analyze.

    Here is an MSDN FAQ about how to prevent FxCop 1.36 from firing warnings against auto generated code.

提交回复
热议问题