Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code Contracts for mono?

Does mono support Code Contracts? I.e. if I build a class library, can mono users use my assembly?

If not, are there any alternative libraries? Preferably supporting static analysis (through a plugin or similar in visual studio)

like image 862
jgauffin Avatar asked Jun 26 '11 09:06

jgauffin


1 Answers

According to the compatability website, Monos Code Contracts API is done but the tooling is not yet complete.

EDIT: The newest version of Mono (2.8) only supports Contract.Requires calls and you have to rewrite you code with ccrewrite, link.

like image 82
Yet Another Geek Avatar answered Oct 19 '22 02:10

Yet Another Geek