Silverlight CodeContracts and rakefile
i'm getting weird code contracts error when using rakefile compile silverlight solution. seems if use the older version of code contracts works, installing latest version doesnt work.
if build silverlight using "rake sl4" seems compile. if build (.net 35,net40...) using "rake rebuild" following error @ sl project. (compiling under vs2010 works fine sl projects.)
it open source project , source code can found @ http://facebooksdk.codeplex.com/sourcecontrol/network/forks/ntotten/version5
ccdoc failed uncaught exception: index out of range. must non-neg
ative , less size of collection.
parameter name: index
stack trace: @ system.throwhelper.throwargumentoutofrangeexception()
@ system.collections.generic.list`1.get_item(int32 index)
@ microsoft.cci.mutablecontracts.contractextractor.extractclump(list`1 bl
ocklist, int32 startblockindex, int32 startstmtindex, int32 endblockindex, in
t32 endstmtindex)
@ microsoft.cci.mutablecontracts.contractextractor.visit(blockstatement b
lockstatement)
@ microsoft.cci.mutablecontracts.contractextractor.splitmethodbodyintocon
tractandcode(iblockstatement blockstatement)
@ microsoft.cci.contracts.lazycontractextractor.getmethodcontractfor(obje
ct method)
@ microsoft.cci.contracts.codecontractscontractextractor.getmethodcontrac
tfor(object method)
@ microsoft.cci.mutablecontracts.contracthelper.getmethodcontractfor(icon
tractawarehost host, imethoddefinition methoddefinition)
@ ccdoc.ccdoccontracthelper.trygetmethodcontract(codecontractawarehostenv
ironment host, imethodreference method, imethodcontract& methodcontract, doct
racker doctracker)
@ ccdoc.contracttraverser.contractpackager.packagemethodcontracts(imethod
definition method, boolean ispure)
@ ccdoc.contracttraverser.visit(imethoddefinition methoddefinition)
@ microsoft.cci.metadatareader.objectmodelimplementation.methoddefinition
.dispatch(imetadatavisitor visitor)
@ microsoft.cci.basemetadatatraverser.visit(itypedefinitionmember typemem
ber)
@ microsoft.cci.basemetadatatraverser.visit(ienumerable`1 typemembers)
@ microsoft.cci.basemetadatatraverser.visit(itypedefinition typedefinitio
n)
@ ccdoc.contracttraverser.visit(itypedefinition typedefinition)
@ microsoft.cci.basemetadatatraverser.visit(ienumerable`1 namespacemember
s)
@ microsoft.cci.basemetadatatraverser.visit(inamespacedefinition namespac
edefinition)
@ microsoft.cci.basemetadatatraverser.visit(ienumerable`1 namespacemember
s)
@ microsoft.cci.basemetadatatraverser.visit(inamespacedefinition namespac
edefinition)
@ microsoft.cci.basemetadatatraverser.visit(imodule module)
@ ccdoc.ccdoc.getcontracts(options options, doctracker doctracker)
@ ccdoc.ccdoc.realmain(string[] args)
@ ccdoc.ccdoc.main(string[] args)
elapsed time: 1884.6987ms
thanks.
prabir
i have same problem here. not relate silverlight not using in way. relates xml documentation generation codecontracts when building contract assembly a.contracts.dll. have suggested might caused non-generic interface holding generic method; have none of - no joy.
no solution found yet. i'll have without contracts xml :-(
DevLabs > Code Contracts
Comments
Post a Comment