VS 2015 add reference

VS 2015 add reference

Moshe-A
Mentor Mentor
632 Views
6 Replies
Message 1 of 7

VS 2015 add reference

Moshe-A
Mentor
Mentor

Hi Guys

 

Need a quick help here, please

 

have 1 solution and i would like to give support to the same app for R2015 - R2018?

tried to add reference to RevitAPI.dll + RevitAPIUI.dll and the VS only remembers the last set

 

Thanks

Moshe

 

0 Likes
Accepted solutions (1)
633 Views
6 Replies
Replies (6)
Message 2 of 7

RPTHOMAS108
Mentor
Mentor

As far as I know separate configurations don't allow you to have separate references.

 

This is a bit odd and limiting considering the existence of conditional compilation statements and compilation constants. It would be nice to have a single solution file with code blocks set for different Revit versions.

Message 3 of 7

Troy_Gates
Advocate
Advocate
Accepted solution

Here is a great write up with examples on how to have a single solution with multiple Revit versions. I have been doing this same method for several years and it works great.

 

http://archi-lab.net/how-to-maintain-revit-plug-ins-for-multiple-versions/

Message 4 of 7

Moshe-A
Mentor
Mentor

wow troy, this looks very sophisticate to me and i still do not understand what to do with postBuildCode.cs and how implment it

does this create only 1 addin (dll) for all revit version i need?

 

 

0 Likes
Message 5 of 7

Moshe-A
Mentor
Mentor

dispite that,  i will face the challange tonight

 

 

0 Likes
Message 6 of 7

Moshe-A
Mentor
Mentor

Troy,

 

wow thank you

 

this is wonderful i made it. the only problem i left with is the assembly name i want each Revit version to have a different name (e.g myapp201X.dll)

since my application is wraped up in inno setup program and all the dll's will be installed in my application folder

the only file that need to be send to Addin folder is the myapp.addin (this is been edit by inno setup to load the excat dll needed)

 

can i have different assembly name?

 

Moshe

 

0 Likes
Message 7 of 7

Moshe-A
Mentor
Mentor

ok found the solustion on the web

 

thanks you all

0 Likes