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

Targetting multiple Acad versions

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
347 Views, 0 Replies

Targetting multiple Acad versions

Hi,

 

I'm trying to build my application, so that it'll work with both 2009 as 2011.

 

It should work by adding Conditions to the references, like this:

 

 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug AutoCAD2011|AnyCPU'">

2011 Interop references

</PropertyGroup>

 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug AutoCAD2009|AnyCPU'">

2009 Interop references

</PropertyGroup>

 

But when building this, I'm getting errors like 

The type '<class>' exists in both '<dll location>' and '<dll location 2>' 

on IAcadApplication, for example.

 

In another post, the final solution seems to be using Copy Local, but I'm not sure that's a very good solution.

 

Any suggestions/ideas?

0 REPLIES 0

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