Search code examples
visual-studiovisual-studio-2010code-contracts

How can i completely disable Code Contracts?


I currently have it setup like below. I had tried checking 'Perform Runtime Contract Checking' and then selecting 'None' but that seems unnecessary. If I have my project setup like below are code contracts completely disabled?

alt text


Solution

  • Yes

    But make sure its set like that for each build configuration, not just release.