Fixing "Rebuild" error when using the Object Test Bench

Lots of folks don’t know that Visual Studio 2005 has design-time expression evaluation that allows you to instantiate objects and execute their methods at design time–a very cool feature. You can do this by right-clicking an object in a class diagram and selecting Create Instance from the shortcut menu (you can also do the same from the Class View window).

If you get an error telling you to rebuild the project when trying to instantiate an object in the Object Test Bench (and the error won’t go away), rebuild your project, then select Tools | Options from the Visual Studio menu and in the Options dialog, select Projects and Solutions in the left pane then mark the Show advanced build configurations check box.


Best Regards,

Kevin McNeish
Microsoft .NET MVP
President, Oak Leaf Enterprises, Inc.
Chief Architect of the MM .NET Application Framework

2 thoughts on “Fixing "Rebuild" error when using the Object Test Bench

Leave a Reply

Your email address will not be published. Required fields are marked *