Convert 2008 code to 2011 code

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created a dll initially for use in the AutoCAD 2008 application. It works great. Now I have been asked to convert it to work with 2011.
I wrote it in .NET using VS2008 and VB.NET.
When I switch the references to the 2011 libraries the code won't run. However, when I switch everything back to 2008 it works fine. Does anyone know what the problem is? I have tried to debug but the breakpoint is never reached. I get the error message on the command line that says: "Unknown command "SCADATACONVERT". Press F1 for help." Why can't it find this command.
Here is the code that I have:
Imports Excel = Microsoft.Office.Interop.Excel
Imports Autodesk.AutoCAD
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.ApplicationServices
'Imports Autodesk.AutoCAD.EditorInput
Imports System.Reflection
Public Class scaCommands
<CommandMethod("scaDataConvert")> _
Public Sub scaDataConvert()
Thanks.