I’m a little late to the game here. I know using VS2012 for AutoCAD .NET development is being discussed on various forums. But hey - Its Friday afternoon and I have a few minutes left before the weekend starts, so take this blog post for what it is – a displacement activity .
I installed Visual Studio 2012 Premium (from my MSDN account) to play with some time ago, but I’ve only just found the time to actually launch it this week. [Sigh – This is why my business card describes me as a manager these days, rather than a programmer ].
Installation went smoothly on my Bootcamped Win7 MacBook Pro (no glitches, crashes or lost data). Although the installer is a sign of what’s to come: its all white text on a black background – not very kind on my eyes.
I opened a VS 2010 .NET test project I had lying around and hit F5. It built without problem, AutoCAD 2013 launched as expected, and I could NETLOAD and use the DLL without problem. I changed the project to target .NET Framework 4.5. Again – the DLL worked with no problem – as expected. This in itself is not a good indicator that larger projects ‘will just work’ – most of the stuff I have lying around on my laptop these days are small samples and proofs of concept. So I pinged the internal email alias used by our AutoCAD development team for discussing .NET issues to see if anyone had come across any bugs in the IDE or issues related to writing and debugging .NET code in VS2012 (our engineering team have been testing VS 2012 throughout the Beta cycle). The answer came back loud and clear:
No problems here. Everything is working fine with VS2012.
There were a few issues during the Betas, but they all seem to have been ironed out now. So that’s the closest I can get at the moment to saying go ahead and use VS2012 for your AutoCAD 2013 .NET projects – it should work fine. (If you do find any issues, then please post a comment and I can document them here for others).
Follow these links for some information general Microsoft API compatibility issues:
That said, I really have to add that my first impression of the UI is not positive. I hope to get used to it, but the uppercase menus and the black (and blue) icons look like very retro to me (and not in a good way). Kind of reminds me of using WordPerfect on DOS.
BTW You can use VS2012 for for (C++) ObjectARX 2013 development too. You have to set the Platform Toolset for a project to VC100 (in a similar way you could use VS2010 with VC90). I’ve not checked whether VC100 comes with VS2012 or not. I have VS2010 installed so it was already there anyway.