.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging AutoCAD 2008 with Visual Studio 2010 Express

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
docsaintly
2188 Views, 3 Replies

Debugging AutoCAD 2008 with Visual Studio 2010 Express

I have read various forum posts and seen different google responses. Is it possible to debug a .net project in AutoCAD 2008 with Visual Studio 2010?

 

I have modified the acad.exe.config file as shown below:

 

<configuration>
   <startup>
        <supportedRuntime version="v2.0.50727"/>
   </startup>
</configuration>



And I have set the visual studio debug options to:

 

Command Line Arguments: start acad.exe
Working Directory: C:\Program Files\AutoCAD Architecture 2008\
Enable the Visual Studio Hosting Process: Checked

I build the project, then i try to start debugging. I get the following error:

System.Reflection.ReflectionTypeLoadException was unhandled
  Message=Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
  Source=mscorlib

Any help would be much appreciated. Thanks in advance.

3 REPLIES 3
Message 2 of 4
mohnston
in reply to: docsaintly

I use option 3 as recommended in this article. From through-the-interface

Works fine for me.

 

ed. - Actually, I'm not using Express so I don't know if that option will work for you.

CAD Programming Solutions
Message 3 of 4
docsaintly
in reply to: docsaintly

Perhaps someone else can tell me otherwise, but option 3 doesn't work for me because VS2010 Express doesn't let me add an exe as an existing project.

Message 4 of 4
docsaintly
in reply to: docsaintly

I found the solution for C# here:http://forums.autodesk.com/t5/NET/Visual-C-Express-2010/m-p/2886742#M22282

 

This fix also works for vb.net, just modify the .vbproj instead of .csproj.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost