Code Contracts doesn't seem to work on VS2012

后端 未结 2 1332
天命终不由人
天命终不由人 2021-02-18 18:18

I\'m reading up on Code Contracts, which at first glance seem to be pretty revolutionary, but I can\'t seem to get them working. I\'m running Windows 8 and Visual Studio 2012 P

2条回答
  •  难免孤独
    2021-02-18 18:53

    Sir, you will have to enable runtime checking. Under your in the window you posted as an image.

    "Full" will mean that all conditions will be checked. The rest are self explanatory.

    • Static checking only runs in the background and checks for any thing it can improve within your code. Caution - it slows your builds down somewhat.

提交回复
热议问题