Derik Whittaker

Syndication

News


Code Contracts Rewrite aborted due to metadata errors

If you are using the Code Contracts library in your application you may from time to time run into some weird build errors.  Today I ran into a fun one as well.  While building my code I received the following error in my error window:

image

Of course I checked my output window but at first nothing seemed obvious.  And of course being a guy (aka stubborn and stupid : ) ) I figured a Clean and Rebuild would do the trick, but as you may have guessed it did not.

Given that I was still not able to get it to compile I decided to take a deeper look at my output window.  While sifting though the mountain of output data I was able to find one line which lead me to the following:

image

Long story short it appears that my .pdb file is out sync with my .dll.  Once I removed/deleted the pdb I was able to perform a rebuild and the world is a happy place.

Hope this helps someone else,

Till next time,


Posted 05-03-2011 6:17 AM by Derik Whittaker
Filed under: ,

[Advertisement]

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)