Code Contracts は Express Edition では使えません!

ブックマークのコメントで、Code Contracts も無料で出来るの?みたいなのがあったので…。
今の所、残念ながら無理です。

Code Contracts for .NET extension Code Contracts comes in two editions: より引用。

Code Contracts Standard Edition: This version installs if you have any edition of Visual Studio other than the Express Edition. It includes the stand-alone contract library, the binary rewriter (for runtime checking), the reference assembly generator, and a set of reference assemblies for the .NET Framework.

you have any edition of Visual Studio other than the Express Edition.

ってあるので、Express Edition では無理ですね〜。
ちなみに、Code Contracts の機能(コンパイル時の検証等)を使う事が出来ないだけで、Code Contracts 用のコードは System.Diagnostics.Contracts Namespace () を使うだけなんで Express Edition でも実装出来ますよ。


Pex は Code Contracts と組み合わせるともっと楽しくなるんだろうけどなぁ〜。