How to start .NET AddIn DLL in debug mode?

How to start .NET AddIn DLL in debug mode?

Anonymous
Not applicable
597 Views
5 Replies
Message 1 of 6

How to start .NET AddIn DLL in debug mode?

Anonymous
Not applicable
Hi,

I've a little experience in creating AddIn's with VB6.
Now I switched to VB2005 Express and I don't find a way to start my AddIn-DLL's in debug mode.
When I tried to start it in debug with F5 (Debug->Start) I became an error messagebox from VB2005 Express that says (roughly translated from german):
"A project of type 'class library' could not started directly. To debug the project add an executable project to your project folder, that references the class library project. Set the executable project as start project."

("Ein Projekt mit dem Ausgabetyp 'Klassenbibliothek' kann nicht direkt gestartet werden. Um das Projekt zu debuggen, fügen Sie dieser Projektmappe ein ausführbares Projekt hinzu, das auf das Bibliotheksprojekt verweist. Legen Sie das ausführbare Projekt als Startprojekt fest.")

Please help me!
Any hints are very welcome.

Thanks,
Guido

AIP2008 + VB6Pro + VB2005 Express
0 Likes
598 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
If you search back a bit for a thread titled "How can one automatically load
and have a button for a non default.ivb?" there's a response from me with
an attached paper that describes how to debug an Add-In created using VB2005
Express.
--
Brian Ekins
Autodesk Inventor API
0 Likes
Message 3 of 6

rjay75
Collaborator
Collaborator
One way is to start Inventor. Then switch to visual studio and under Tools or Debug, select Attach to Process. Select the Inventor.exe process.
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hi,

!!!THANK YOU VERY MUCH!!!
That's exactly what I'm looking for. I tried this and it works perfect!

???Where do you found it???

Like I understand it, the ".vbproj.user" is 'only' a extension to the project-file ".vbproj" and could also write the xml-tags directly to the main project-file. I havn't tried this yet.

???Are there any additional usefull things we could do with project-file settings???
???Where to look for that???

???Is there any possibility to stop debugging, edit code and (re)start debugging WITHOUT closing Inventor (starting Inventor takes always a few seconds of time)???

Unloading the AddIn from Inventor is not enougth and stopping debugging in VB2005 closes Inventor.

Any ideas, hints?

CU,
Guido
0 Likes
Message 5 of 6

Anonymous
Not applicable
Hi,

thanks for your answer!
I could not try this, because I didn't found the "Attach to Process" menu-item.
Maybe it's not available in the Express-Editions??
Or it's because I use the german VS2005 Express and the menu-structure is totally different - but I don't think so.
Which version of Visual Basic (or Visual Studio) do you use?

CU,
Guido
0 Likes
Message 6 of 6

Anonymous
Not applicable
I don't believe it's available in the Express edition. The only way that I
was able to figure out was to create the "*.vbproj.user" file.
--
Brian Ekins
Autodesk Inventor API
0 Likes