Debugging AutoCAD .NET projects using Express Editions
Visual C# Express and Visual Basic Express can be used successfully to build .NET applications for AutoCAD: in fact many developers use these tools to do so. One long-standing issue with using these tools with AutoCAD relates to debugging: the ability to debug using an external application is not directly exposed via the user interface Visual C#/Basic Express, which – as AutoCAD implements a plug-in hosting framework for .NET Class Libraries (or DLLs) – makes life complicated.
The workaround for addressing this issue has been documented in this previous post and also on the ADN web-site, but thankfully this manual approach of modifying the .vbproj.user/.csproj.user file is no longer needed: the latest version of the AutoCAD .NET Wizard (6.7 MB) (which can also, of course, be found on the AutoCAD Developer Center) takes care of this automatically.
The reason this download is a bit bigger than in the past is that Stephen Preston has recorded a 5-minute screencast to accompany the use of this new version of the Wizard. In it, he explains the new configuration option pointing to the AutoCAD executable which enables the Wizard to populate the debugging information appropriately in the .user files it creates:
If you’re interesting in learning more, please download the Wizard and take a look at the accompanying screencast.