Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 730901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:57:53+00:00 2026-05-14T06:57:53+00:00

.NET 4 introduced Code Contracts as a new feature. I’d like to use CC,

  • 0

.NET 4 introduced Code Contracts as a new feature. I’d like to use CC, but provide files that can still run in 3.5 SP1. Is that possible? Can I only use parts of the new functionality? Apparently it is possible to have CC only do static checks without being included in the binary files, is that correct?

I’m aware CC was available for 3.5 as separate module, is this a feasible workaround in case I can’t use the 4 version of CC? Is there a difference in the feature set?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:57:54+00:00Added an answer on May 14, 2026 at 6:57 am

    I’d like to use CC, but provide files
    that can still run in 3.5 SP1. Is that
    possible?

    You can’t use .NET 4.0 CC but you can use Microsoft.Contracts.dll which is the 3.5 CC assembly.

    Apparently it is possible to have CC
    only do static checks without being
    included in the binary files, is that
    correct?

    Yes. The premium edition includes the static checker, but you need VS2008 Team System or VS2010 Premium/Ultimate to use Code Contracts Premium Edition.

    I’m aware CC was available for 3.5 as
    separate module, is this a feasible
    workaround in case I can’t use the 4
    version of CC?

    Yes it is still available. Get it from http://msdn.microsoft.com/en-us/devlabs/dd491992.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got really captivated by code contracts introduced in .NET 4 (though with the
C# 2 and VB.Net 8 introduced a new feature called iterators , which were
Microsoft introduced a new System.IO.MemoryMappedFiles namespace in .Net 4. Does anyone know if it
In ASP.NET MVC 2, a couple of new action filter attributes were introduced, as
My understanding is that the static keyword was introduced for compatibility with .NET (along
I think it was in .net 2.0, microsoft introduced an accessor that was abbreviated
Microsoft just released Code Contracts , a tool that integrates with Visual Studio and
Why was Func<T, TResult>(..) introduced with .NET 3.0 whereas Action<T>(..) with .NET 2.0? Edit:
.NET framework 3.5 introduces Action and Func<> predefined delegate types that are very handy.
.Net assemblies have pdb files for debugging. The PDB file points to the exact

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.