Code Contracts

Discuss and provide feedback on Code Contracts. 

הכרזות

  • Link

    It has happened. New VS2010 and VS2012 Contract editor extensions are available on the gallery

    יום שלישי 19 מרץ 2013 21:25

    It has taken a long time, we know, but we have finally released the contract editor extensions for VS2012 and an update to VS2010.

    The new version is much more stable and less CPU consuming than previously and hopefully much more useful as a result.

    For VS2012:  http://visualstudiogallery.msdn.microsoft.com/02de7066-b6ca-42b3-8b3c-2562c7fa024f

    For VS2010: http://visualstudiogallery.msdn.microsoft.com/85f0aa38-a8a8-4811-8b86-e7f0b8d8c71b

    If you haven't tried it yet, then please do and let us know what you think!

    To review, the extensions should show you method contracts in the following situations:

    • While you are typing a call to a method: the signature helper window should show you each overload's contract in the same window as the signature and exception information.
    • Hovering over an existing method call: the quick info window should show you the method's contract in addition to its summary information.
    • Method override and interface implementation definitions: hover over the method name in the signature to see the tooltip of the contracts inherited (or defined in the method).
    • Metadata windows: if you "go to definition" for a type/method that is defined in an external assembly then the metadata window that VS creates should be augmented with method contracts.

    Enjoy.


  • Link

    Release 1.5.60502.11 is now live!

    Manuel FahndrichMicrosoft Employeeיום ראשון 17 מרץ 2013 23:17

    Release 1.5.60502.11 is now live!

    A new release of Code Contracts is now live on the VS Gallery.

    The release notes have been updated.

    Please keep using the forum for communicating with us.

    The VS editor extensions have also been updated on the gallery.




  • Link

    Welcome to Code Contracts for .NET

    יום שישי 20 פברואר 2009 02:28
    We are so happy that you are interested in Code Contracts! You are at exactly the right place for learning how to use contracts from any .NET language to:
    • Specify method preconditions for expressing conditions that a caller must meet in order to call a method.
    • Specify method postconditions for expressing conditions that the implementation of a method must meet before returning. Conditions can be specified for both normal termination as well as exceptional termination.
    • Specify object invariants that describe the healthy states for an instance of a class.

     

    We currently provide three tools for making use of contracts:

    • A binary rewriter that operates as a post-build step to inject the contracts into the appropriate places for them to be evaluated at runtime.
    • A static checker that operates as a post-build step to analyze your code without even executing it for potential contract violations.
    • A documentation generator that adds information about the contracts to the XML documentation files for your project.

    The installer for these tools is available for either commercial or non-commercial use.

    We welcome you to use the forum to ask questions about how to use contracts and the tools, to make suggestions for how we can improve, and --- if you really must --- to report bugs and problems.

    You can also check out our home page at Microsoft Research.

  • Link

    External projects using Code Contracts?

    יום חמישי 22 מרץ 2012 17:09

    We have added a section to our web site listing the external projects that we know about which are using Code Contracts. If you would like your project listed, please send us a link and we'll add it to the list. This would really help us in our efforts to get the project more fully supported by the product groups.

    Thanks!

    Mike

סינון ומיוןהשתמש באפשרויות אלה כדי לצמצם את רשימת השאלות והדיונים.

Items 1 to 20 of 185212345הבא ›Last »
 
תגובותצפיות
 
Items 1 to 20 of 185212345הבא ›Last »