문제

I was just wondering, would I be able to add and use CodeContracts under System.Diagnostics in Visual Studion 2005?

Thank's

도움이 되었습니까?

해결책

It appears that the answer is no.

https://social.msdn.microsoft.com/forums/en-US/10f23fc4-d9cb-44e2-98a8-36488e7c9f9c/code-contracts-and-vs2005

Given that you can only "prove" an application correct using the more expensive SKU, Code Contracts sort of acts like fancy assertions, which you can simulate withe the Should Library:

https://github.com/erichexter/Should

Or upgrade to a newer version of VS.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top