<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Build for multiple Autocad versions in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330092#M85076</link>
    <description>Another thing you can do is use binding redirect in acad.exe.config.&lt;BR /&gt;
1. Build against the R2005 version of the interop assemblies.&lt;BR /&gt;
2. Add the following to acad.exe.config on R2006. I haven't tried this so I &lt;BR /&gt;
may have some silly typos. It shows the idea nonetheless:&lt;BR /&gt;
  &lt;RUNTIME&gt;&lt;BR /&gt;
    &lt;ASSEMBLYBINDING xmlns="urn:schemas-microsoft-com:asm.v1"&gt;&lt;BR /&gt;
      &lt;DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
        &lt;ASSEMBLYIDENTITY name="Autodesk.AutoCAD.Interop.Common"&gt;&lt;BR /&gt;
publicKeyToken="eed84259d7cbf30b" culture="neutral" /&amp;gt;&lt;BR /&gt;
        &lt;BINDINGREDIRECT oldversion="16.1.63.0" newversion="16.2.54.0"&gt;&lt;/BINDINGREDIRECT&gt;&lt;BR /&gt;
      &lt;/ASSEMBLYIDENTITY&gt;&lt;BR /&gt;
      &lt;DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
        &lt;ASSEMBLYIDENTITY name="Autodesk.AutoCAD.Interop"&gt;&lt;BR /&gt;
publicKeyToken="eed84259d7cbf30b" culture="neutral" /&amp;gt;&lt;BR /&gt;
        &lt;BINDINGREDIRECT oldversion="16.1.63.0" newversion="16.2.54.0"&gt;&lt;/BINDINGREDIRECT&gt;&lt;BR /&gt;
      &lt;/ASSEMBLYIDENTITY&gt;&lt;BR /&gt;
    &lt;/DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
  &lt;/DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4849652@discussion.autodesk.com...&lt;BR /&gt;
The interop assembly being provided by Autodesk and going through activex &lt;BR /&gt;
interfaces creates a unique problem.&lt;BR /&gt;
&lt;BR /&gt;
I can only build for one version at a time, if I have 2006 installed and &lt;BR /&gt;
write a .net app for Autocad, it will not run on a system with only 2005 &lt;BR /&gt;
installed.&lt;BR /&gt;
&lt;BR /&gt;
To solve this and be able to build for both 2005 and 2006, I had to build a &lt;BR /&gt;
batch file that unregisters the 2006 interop and registers the 2005 one &lt;BR /&gt;
(boring).&lt;BR /&gt;
&lt;BR /&gt;
Not a major issue, but it adds an extra complicated step that dot net is &lt;BR /&gt;
supposed to eliminate.&lt;/CARPS&gt;&lt;/ASSEMBLYBINDING&gt;&lt;/RUNTIME&gt;</description>
    <pubDate>Thu, 19 May 2005 02:08:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-05-19T02:08:20Z</dc:date>
    <item>
      <title>Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330090#M85074</link>
      <description>The interop assembly being provided by Autodesk and going through activex interfaces creates a unique problem. &lt;BR /&gt;
&lt;BR /&gt;
I can only build for one version at a time, if I have 2006 installed and write a .net app for Autocad, it will not run on a system with only 2005 installed. &lt;BR /&gt;
&lt;BR /&gt;
To solve this and be able to build for both 2005 and 2006, I had to build a batch file that unregisters the 2006 interop and registers the 2005 one (boring). &lt;BR /&gt;
&lt;BR /&gt;
Not a major issue, but it adds an extra complicated step that dot net is supposed to eliminate.</description>
      <pubDate>Wed, 18 May 2005 20:38:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330090#M85074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-18T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330091#M85075</link>
      <description>CArps wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Not a major issue, but it adds an extra complicated step that dot net&lt;BR /&gt;
&amp;gt; is supposed to eliminate.&lt;BR /&gt;
&lt;BR /&gt;
If you're willing to accept the performance penalty, it's possible to use &lt;BR /&gt;
late binding thus freeing you from the problem.&lt;BR /&gt;
&lt;BR /&gt;
I wouldn't recommend it for intense purposes but it's a great solution for &lt;BR /&gt;
querying drawings.</description>
      <pubDate>Wed, 18 May 2005 23:04:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330091#M85075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-18T23:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330092#M85076</link>
      <description>Another thing you can do is use binding redirect in acad.exe.config.&lt;BR /&gt;
1. Build against the R2005 version of the interop assemblies.&lt;BR /&gt;
2. Add the following to acad.exe.config on R2006. I haven't tried this so I &lt;BR /&gt;
may have some silly typos. It shows the idea nonetheless:&lt;BR /&gt;
  &lt;RUNTIME&gt;&lt;BR /&gt;
    &lt;ASSEMBLYBINDING xmlns="urn:schemas-microsoft-com:asm.v1"&gt;&lt;BR /&gt;
      &lt;DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
        &lt;ASSEMBLYIDENTITY name="Autodesk.AutoCAD.Interop.Common"&gt;&lt;BR /&gt;
publicKeyToken="eed84259d7cbf30b" culture="neutral" /&amp;gt;&lt;BR /&gt;
        &lt;BINDINGREDIRECT oldversion="16.1.63.0" newversion="16.2.54.0"&gt;&lt;/BINDINGREDIRECT&gt;&lt;BR /&gt;
      &lt;/ASSEMBLYIDENTITY&gt;&lt;BR /&gt;
      &lt;DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
        &lt;ASSEMBLYIDENTITY name="Autodesk.AutoCAD.Interop"&gt;&lt;BR /&gt;
publicKeyToken="eed84259d7cbf30b" culture="neutral" /&amp;gt;&lt;BR /&gt;
        &lt;BINDINGREDIRECT oldversion="16.1.63.0" newversion="16.2.54.0"&gt;&lt;/BINDINGREDIRECT&gt;&lt;BR /&gt;
      &lt;/ASSEMBLYIDENTITY&gt;&lt;BR /&gt;
    &lt;/DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
  &lt;/DEPENDENTASSEMBLY&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4849652@discussion.autodesk.com...&lt;BR /&gt;
The interop assembly being provided by Autodesk and going through activex &lt;BR /&gt;
interfaces creates a unique problem.&lt;BR /&gt;
&lt;BR /&gt;
I can only build for one version at a time, if I have 2006 installed and &lt;BR /&gt;
write a .net app for Autocad, it will not run on a system with only 2005 &lt;BR /&gt;
installed.&lt;BR /&gt;
&lt;BR /&gt;
To solve this and be able to build for both 2005 and 2006, I had to build a &lt;BR /&gt;
batch file that unregisters the 2006 interop and registers the 2005 one &lt;BR /&gt;
(boring).&lt;BR /&gt;
&lt;BR /&gt;
Not a major issue, but it adds an extra complicated step that dot net is &lt;BR /&gt;
supposed to eliminate.&lt;/CARPS&gt;&lt;/ASSEMBLYBINDING&gt;&lt;/RUNTIME&gt;</description>
      <pubDate>Thu, 19 May 2005 02:08:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330092#M85076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T02:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330093#M85077</link>
      <description>And yet another solution is to use your own interop assembly (based on say &lt;BR /&gt;
the R2004 version of the typelib). You don't have to use the PIA. Using your &lt;BR /&gt;
own interop assembly will make you redistributable bigger but it will work &lt;BR /&gt;
for R2004, 2005, 2006.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4849652@discussion.autodesk.com...&lt;BR /&gt;
The interop assembly being provided by Autodesk and going through activex &lt;BR /&gt;
interfaces creates a unique problem.&lt;BR /&gt;
&lt;BR /&gt;
I can only build for one version at a time, if I have 2006 installed and &lt;BR /&gt;
write a .net app for Autocad, it will not run on a system with only 2005 &lt;BR /&gt;
installed.&lt;BR /&gt;
&lt;BR /&gt;
To solve this and be able to build for both 2005 and 2006, I had to build a &lt;BR /&gt;
batch file that unregisters the 2006 interop and registers the 2005 one &lt;BR /&gt;
(boring).&lt;BR /&gt;
&lt;BR /&gt;
Not a major issue, but it adds an extra complicated step that dot net is &lt;BR /&gt;
supposed to eliminate.&lt;/CARPS&gt;</description>
      <pubDate>Thu, 19 May 2005 02:12:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330093#M85077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T02:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330094#M85078</link>
      <description>That could  break other applications or introduce old framework bugs into R2006 itself.  I have to remain interoperable with other plugins for ADT.</description>
      <pubDate>Thu, 19 May 2005 12:24:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330094#M85078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T12:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330095#M85079</link>
      <description>I also have this problem, and I like the idea of a batch file fix, are you &lt;BR /&gt;
willing to post the text contained in your batch file please....&lt;BR /&gt;
&lt;BR /&gt;
Laurence&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4849652@discussion.autodesk.com...&lt;BR /&gt;
The interop assembly being provided by Autodesk and going through activex &lt;BR /&gt;
interfaces creates a unique problem.&lt;BR /&gt;
&lt;BR /&gt;
I can only build for one version at a time, if I have 2006 installed and &lt;BR /&gt;
write a .net app for Autocad, it will not run on a system with only 2005 &lt;BR /&gt;
installed.&lt;BR /&gt;
&lt;BR /&gt;
To solve this and be able to build for both 2005 and 2006, I had to build a &lt;BR /&gt;
batch file that unregisters the 2006 interop and registers the 2005 one &lt;BR /&gt;
(boring).&lt;BR /&gt;
&lt;BR /&gt;
Not a major issue, but it adds an extra complicated step that dot net is &lt;BR /&gt;
supposed to eliminate.&lt;/CARPS&gt;</description>
      <pubDate>Thu, 19 May 2005 12:26:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330095#M85079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T12:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330096#M85080</link>
      <description>Yep. This may break other R2006 based apps that rely on R2006-only features.&lt;BR /&gt;
&lt;BR /&gt;
Albert&lt;BR /&gt;
&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4850121@discussion.autodesk.com...&lt;BR /&gt;
That could  break other applications or introduce old framework bugs into &lt;BR /&gt;
R2006 itself.  I have to remain interoperable with other plugins for ADT.&lt;/CARPS&gt;</description>
      <pubDate>Thu, 19 May 2005 16:57:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330096#M85080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330097#M85081</link>
      <description>That will not work as you can only have one primary interop assembly linked to an activex typelib. &lt;BR /&gt;
&lt;BR /&gt;
Since the version of the typelib has not changed, there is no way to accomplish this without unregistering the PIA on the end users machine. &lt;BR /&gt;
&lt;BR /&gt;
Plus you will lose some of the .net only objects that are in Autodesks PIA. &lt;BR /&gt;
&lt;BR /&gt;
The solution is for Autodesk to provide a real dot net dll and get rid of activex. As long as the registry is involved, you will have to deal with "dll hell".</description>
      <pubDate>Thu, 19 May 2005 20:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330097#M85081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T20:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330098#M85082</link>
      <description>CArps wrote:&lt;BR /&gt;
&amp;gt; That will not work as you can only have one primary interop assembly&lt;BR /&gt;
&amp;gt; linked to an activex typelib.&lt;BR /&gt;
&lt;BR /&gt;
As he said: you are not forced to use the PIA. Simply create a local &lt;BR /&gt;
assembly using TLBIMP. As long as you specify the namespace to be &lt;BR /&gt;
contained by your assembly, it'll work just fine.</description>
      <pubDate>Thu, 19 May 2005 20:52:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330098#M85082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T20:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330099#M85083</link>
      <description>Sure, the first two steps you will have to do manually to setup for your compiles/builds. &lt;BR /&gt;
&lt;BR /&gt;
1) Locate the Autodesk .dll files in the GAC. You cannot use windows explorer for this, you have to use the good old command line with cd and dir.  &lt;BR /&gt;
&lt;BR /&gt;
CD \winnt\assembly\GAC&lt;BR /&gt;
xcopy *.* c:\temp\junk /S &lt;BR /&gt;
&lt;BR /&gt;
This will copy all the subdirs and all dlls in the gac so you can get at them with explorer.&lt;BR /&gt;
&lt;BR /&gt;
2) Find the appropriate Autodesk folders and copy the dlls to a nice location for your builds for ease of use.You will need a folder for each version. &lt;BR /&gt;
&lt;BR /&gt;
Now that we have the dotnet dlls you can now setup for builds. &lt;BR /&gt;
&lt;BR /&gt;
Assuming we are building the 2006 version of the program: &lt;BR /&gt;
&lt;BR /&gt;
3) Execute the unregister batch file for 2005 (shown below) &lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT45&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll /u&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
4) Execute the register batch file for 2006 (shown below) &lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT47&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
There are 4 batch files, reg and unreg for 2005, reg and unreg for 2006.  Thist allows a developer to be on 2006 and we can build for both versions (as long as he doesn't use any 2006 only features).</description>
      <pubDate>Thu, 19 May 2005 21:03:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330099#M85083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T21:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330100#M85084</link>
      <description>I tried this yesterday testing a new program, ADT 2006 will not even run after changing the config file.  &lt;BR /&gt;
&lt;BR /&gt;
I have no idea about Autocad2006, but I suspect it will crash as well.</description>
      <pubDate>Thu, 19 May 2005 21:05:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330100#M85084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-19T21:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330101#M85085</link>
      <description>Cheers, thanks for the full explanation, will give it a go&lt;BR /&gt;
&lt;BR /&gt;
Laurence&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4851112@discussion.autodesk.com...&lt;BR /&gt;
Sure, the first two steps you will have to do manually to setup for your &lt;BR /&gt;
compiles/builds.&lt;BR /&gt;
&lt;BR /&gt;
1) Locate the Autodesk .dll files in the GAC. You cannot use windows &lt;BR /&gt;
explorer for this, you have to use the good old command line with cd and &lt;BR /&gt;
dir.&lt;BR /&gt;
&lt;BR /&gt;
CD \winnt\assembly\GAC&lt;BR /&gt;
xcopy *.* c:\temp\junk /S&lt;BR /&gt;
&lt;BR /&gt;
This will copy all the subdirs and all dlls in the gac so you can get at &lt;BR /&gt;
them with explorer.&lt;BR /&gt;
&lt;BR /&gt;
2) Find the appropriate Autodesk folders and copy the dlls to a nice &lt;BR /&gt;
location for your builds for ease of use.You will need a folder for each &lt;BR /&gt;
version.&lt;BR /&gt;
&lt;BR /&gt;
Now that we have the dotnet dlls you can now setup for builds.&lt;BR /&gt;
&lt;BR /&gt;
Assuming we are building the 2006 version of the program:&lt;BR /&gt;
&lt;BR /&gt;
3) Execute the unregister batch file for 2005 (shown below)&lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT45&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll /u&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
4) Execute the register batch file for 2006 (shown below)&lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT47&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
There are 4 batch files, reg and unreg for 2005, reg and unreg for 2006. &lt;BR /&gt;
Thist allows a developer to be on 2006 and we can build for both versions &lt;BR /&gt;
(as long as he doesn't use any 2006 only features).&lt;/CARPS&gt;</description>
      <pubDate>Fri, 20 May 2005 07:07:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330101#M85085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-20T07:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330102#M85086</link>
      <description>Can you just confirm the version numbers please. I have v16.2.54.0 which I &lt;BR /&gt;
assume is 2006 and version 16.1.63.0 which I assume is 2005?&lt;BR /&gt;
&lt;BR /&gt;
Laurence&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4851112@discussion.autodesk.com...&lt;BR /&gt;
Sure, the first two steps you will have to do manually to setup for your &lt;BR /&gt;
compiles/builds.&lt;BR /&gt;
&lt;BR /&gt;
1) Locate the Autodesk .dll files in the GAC. You cannot use windows &lt;BR /&gt;
explorer for this, you have to use the good old command line with cd and &lt;BR /&gt;
dir.&lt;BR /&gt;
&lt;BR /&gt;
CD \winnt\assembly\GAC&lt;BR /&gt;
xcopy *.* c:\temp\junk /S&lt;BR /&gt;
&lt;BR /&gt;
This will copy all the subdirs and all dlls in the gac so you can get at &lt;BR /&gt;
them with explorer.&lt;BR /&gt;
&lt;BR /&gt;
2) Find the appropriate Autodesk folders and copy the dlls to a nice &lt;BR /&gt;
location for your builds for ease of use.You will need a folder for each &lt;BR /&gt;
version.&lt;BR /&gt;
&lt;BR /&gt;
Now that we have the dotnet dlls you can now setup for builds.&lt;BR /&gt;
&lt;BR /&gt;
Assuming we are building the 2006 version of the program:&lt;BR /&gt;
&lt;BR /&gt;
3) Execute the unregister batch file for 2005 (shown below)&lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT45&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll /u&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
4) Execute the register batch file for 2006 (shown below)&lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT47&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
There are 4 batch files, reg and unreg for 2005, reg and unreg for 2006. &lt;BR /&gt;
Thist allows a developer to be on 2006 and we can build for both versions &lt;BR /&gt;
(as long as he doesn't use any 2006 only features).&lt;/CARPS&gt;</description>
      <pubDate>Fri, 20 May 2005 08:32:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330102#M85086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-20T08:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330103#M85087</link>
      <description>My fault, test PC has 2006 so uninstalled and tried, failed, so repaired &lt;BR /&gt;
2005 installation, worked.&lt;BR /&gt;
&lt;BR /&gt;
Batch files - Great solution CArps&lt;BR /&gt;
&lt;BR /&gt;
Laurence&lt;BR /&gt;
"Laurence Skoropinski" &lt;LAURENCE.SKOROPINSKI&gt; wrote in message &lt;BR /&gt;
news:4851451@discussion.autodesk.com...&lt;BR /&gt;
Can you just confirm the version numbers please. I have v16.2.54.0 which I&lt;BR /&gt;
assume is 2006 and version 16.1.63.0 which I assume is 2005?&lt;BR /&gt;
&lt;BR /&gt;
Laurence&lt;BR /&gt;
&lt;CARPS&gt; wrote in message news:4851112@discussion.autodesk.com...&lt;BR /&gt;
Sure, the first two steps you will have to do manually to setup for your&lt;BR /&gt;
compiles/builds.&lt;BR /&gt;
&lt;BR /&gt;
1) Locate the Autodesk .dll files in the GAC. You cannot use windows&lt;BR /&gt;
explorer for this, you have to use the good old command line with cd and&lt;BR /&gt;
dir.&lt;BR /&gt;
&lt;BR /&gt;
CD \winnt\assembly\GAC&lt;BR /&gt;
xcopy *.* c:\temp\junk /S&lt;BR /&gt;
&lt;BR /&gt;
This will copy all the subdirs and all dlls in the gac so you can get at&lt;BR /&gt;
them with explorer.&lt;BR /&gt;
&lt;BR /&gt;
2) Find the appropriate Autodesk folders and copy the dlls to a nice&lt;BR /&gt;
location for your builds for ease of use.You will need a folder for each&lt;BR /&gt;
version.&lt;BR /&gt;
&lt;BR /&gt;
Now that we have the dotnet dlls you can now setup for builds.&lt;BR /&gt;
&lt;BR /&gt;
Assuming we are building the 2006 version of the program:&lt;BR /&gt;
&lt;BR /&gt;
3) Execute the unregister batch file for 2005 (shown below)&lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT45&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll /u&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll /u&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
4) Execute the register batch file for 2006 (shown below)&lt;BR /&gt;
cd Assembly&lt;BR /&gt;
cd ADT47&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.ArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.Base.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIArchBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AEC.Interop.UIBase.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.dll&lt;BR /&gt;
%Framework%\regasm Autodesk.AutoCAD.Interop.Common.dll&lt;BR /&gt;
cd ..&lt;BR /&gt;
cd ..&lt;BR /&gt;
&lt;BR /&gt;
if (%1)==(AUTO) goto :EOF&lt;BR /&gt;
pause&lt;BR /&gt;
&lt;BR /&gt;
There are 4 batch files, reg and unreg for 2005, reg and unreg for 2006.&lt;BR /&gt;
Thist allows a developer to be on 2006 and we can build for both versions&lt;BR /&gt;
(as long as he doesn't use any 2006 only features).&lt;/CARPS&gt;&lt;/LAURENCE.SKOROPINSKI&gt;</description>
      <pubDate>Fri, 20 May 2005 09:59:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330103#M85087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-20T09:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330104#M85088</link>
      <description>I tried that out and it will work, but I lose the AcGe library in 2005,2006 code. I will just stick to the batch trick as it only affects the build machine and does not impact development environments.</description>
      <pubDate>Fri, 20 May 2005 12:26:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330104#M85088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-20T12:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330105#M85089</link>
      <description>I too am trying to build for 2 versions, vanilla ACAD 2005 &amp;amp; 2006. I am also learning vb.net. I tried the batch trick you described below but it didn't work. regasm told me that all registers and unregisters were successfull. I am still getting errors for ALL of my Imports such as this:&lt;BR /&gt;
&lt;BR /&gt;
Namespace or type 'ApplicationServices' for the Imports 'Autodesk.AutoCAD.ApplicationServices' cannot be found.&lt;BR /&gt;
&lt;BR /&gt;
Anybody know what I am doing wrong? I have correctly referenced the right AutoCAD DLL's.</description>
      <pubDate>Wed, 15 Jun 2005 21:07:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330105#M85089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-15T21:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330106#M85090</link>
      <description>CArps, this is a really great work! I will try this too.

Message was edited by: cadprog</description>
      <pubDate>Tue, 22 Aug 2006 14:22:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/1330106#M85090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-22T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Build for multiple Autocad versions</title>
      <link>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/7344494#M85091</link>
      <description>&lt;P&gt;The best would be to use "dynamic" type in c#, check here &lt;A href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/dynamic" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/dynamic&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;This way will no longer need to reference the assembly, therefor no need to worry about&amp;nbsp;versions of interops.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just used it and it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 08:31:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/build-for-multiple-autocad-versions/m-p/7344494#M85091</guid>
      <dc:creator>andrei.petre</dc:creator>
      <dc:date>2017-09-01T08:31:55Z</dc:date>
    </item>
  </channel>
</rss>

