Debug Assert failure when building project
Posted on 2009-07-06
Folks - totally baffled here. I have some Debug.Assert statements in private get Property accessors (before throwing an exception - used when getting and the property hasn't been set yet). pretty standard stuff.
when I build (Release config), all of these Asserts get hit and I get the pop-up assert message.
This happens both in VS and MsBuild
how is it possible that:
1. Debug.Assert asserts when building?!?!
2. Debug.Assert would assert in a private get?
its as if the build is trying to access the private get? does it have anything to do with the class, which inherits from System.Workflow.ComponentModel.Activity?