views:

311

answers:

2

So it seems there should be a "Code Contracts" tab in Visual Studio 2010's properties. I can't find it anywhere. Maybe it's a problem with my Visual Studio installation? I am running the RC version.

This is what I have:

alt text

Anyone knows what might be wrong? Maybe I am looking in the wrong place?

Thanks

+4  A: 

You have to download and install code contracts first. Even then, you'll only get run-time checking of contracts. Static checking requires the premium edition of visual studio.

Wim Coenen
+2  A: 

Have you actually installed the Code Contracts stuff from DevLabs?

LukeH
Ah, I assumed it came with VS 2010? It even has the System.Diagnostics.Contracts namespace and so loaded into VS.
devoured elysium
My understanding is that although `System.Diagnostics.Contracts` is included in .NET 4 you also need the separate install to get the tools and the VS integration.
LukeH