Geeks With Blogs

News

View Anthony Trudeau's profile on LinkedIn

Add to Technorati Favorites


Anthony Trudeau

I have quickly fallen in love with the Object Test Bench even though its really not much more than a souped-up, visual Immediate Window.  However, in a project last night I was stumped to see that the “Create Instance“ menu option was not shown in the Class View as the Help file indicated it would be.  I didn't think much of it and I just did my object creation from the Immediate Window which created the object in the OTB for me.  However, this morning rational thought brought on by a decent night's sleep led me to the solution.

Apparently, the “Create Instance“ menu options in the Class View are only available if the selected project is a start-up project.  I'm not sure why that is, but there's probably a good reason.  At any rate, I hope that this helps someone else that experiences the same problem.

Partho's weblog has some great articles on the Object Test Bench in Visual Studio 2005.

Posted on Wednesday, November 30, 2005 7:02 AM .NET | Back to top


Comments on this post: Create Instance menu option not displayed

# re: Create Instance menu option not displayed
Requesting Gravatar...
Rest assured, your post helped at least one lone progger... thanks!!!
Left by Dave Swersky on Jan 25, 2006 11:25 AM

# re: Create Instance menu option not displayed
Requesting Gravatar...
I tried all kinds of things to make the menu option appear. Who would have thought of making a class library the startup project. Thanks for blogging this and saving me loads of time!!!
Left by Darren Fieldhouse on Sep 21, 2006 3:23 AM

# re: Create Instance menu option not displayed
Requesting Gravatar...
I love these types of comments! That's exactly the reason I started this blog, so it's good to know it's reaching people.
Left by Anthony Trudeau on Sep 21, 2006 4:58 AM

# re: Create Instance menu option not displayed
Requesting Gravatar...
Found you in Google search. Was getting very frustrated trying to 'Create Instance' on my business object in separate business library. Would have never thought of this.

Thanks!
Left by WB on Sep 27, 2007 12:06 PM

# re: Create Instance menu option not displayed
Requesting Gravatar...
I tried time and times and never get it displayed!! Then I found your post!! Thanks a lot for posting this.
Left by minminpig on Aug 13, 2008 4:58 AM

# re: Create Instance menu option not displayed
Requesting Gravatar...
To everyone that commented you're welcome, and thanks for posting your comments. It really makes it worthwhile to post these bits of wisdom when I see that it is really helping people. These things are usually found and solved in the mist of a project or task that is important and time sensitive, so taking the time to put this is a sacrifice and I'm glad it's been helpful to people.
Left by Anthony Trudeau on Aug 13, 2008 8:54 AM

# re: Create Instance menu option not displayed
Requesting Gravatar...
Thanks for posting - saved me a lot of time.
Left by Giles Smith on Apr 30, 2009 7:15 AM

# re: Create Instance menu option not displayed
Requesting Gravatar...
thanks this saved me time and frustration
Left by mikki on Aug 30, 2010 12:42 PM

Your comment:
 (will show your gravatar)


Copyright © Anthony Trudeau | Powered by: GeeksWithBlogs.net