Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Force my app to use assemblies in its folder

1 REPLY 1
Reply
Message 1 of 2
Anonymous
305 Views, 1 Reply

Force my app to use assemblies in its folder

Anonymous
Not applicable

Hi Dears,

i have some plugins for Revit each one in separated folder with its own & shared dll files like following

my apps in folders named            A                       B                          C

each folder contain in it            A1.dll                B1.dll                  C1.dll

                                                      A2.dll                B2.dll                  C2.dll
                                                       X.dll                   X.dll                   X.dll      =>     same files

                                                       Y.dll                   Y.dll                    Y.dll      =>     same files

                                                       Z.dll                   Z.dll                    Z.dll      =>     same files

 

Revit always loading x, y & Z from A folder and ignore the same files in folders B & C

apps B & C always using X, Y & Z from A folder even when using Assembly.LoadFile or AppDomain.Load (i can't use reflection over all my apps), I also change their version and its GUID but no effect

 

how to force Revit & my apps B & C to use only the dlls (X.dll, Y.dll & Z.dll) in its own folder not dlls with the same name from the first folder


many thanks in advance 
 

 

0 Likes

Force my app to use assemblies in its folder

Hi Dears,

i have some plugins for Revit each one in separated folder with its own & shared dll files like following

my apps in folders named            A                       B                          C

each folder contain in it            A1.dll                B1.dll                  C1.dll

                                                      A2.dll                B2.dll                  C2.dll
                                                       X.dll                   X.dll                   X.dll      =>     same files

                                                       Y.dll                   Y.dll                    Y.dll      =>     same files

                                                       Z.dll                   Z.dll                    Z.dll      =>     same files

 

Revit always loading x, y & Z from A folder and ignore the same files in folders B & C

apps B & C always using X, Y & Z from A folder even when using Assembly.LoadFile or AppDomain.Load (i can't use reflection over all my apps), I also change their version and its GUID but no effect

 

how to force Revit & my apps B & C to use only the dlls (X.dll, Y.dll & Z.dll) in its own folder not dlls with the same name from the first folder


many thanks in advance 
 

 

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: Anonymous

jeremytammik
Autodesk
Autodesk

Afaik, you have to name the different flavours of X, Y and Z differently.

  

Afaik, if they are named the same, .NET will only load the first one and reuse that for the others.

  

https://thebuildingcoder.typepad.com/blog/2019/11/dll-conflicts-and-replicating-schedule-sort-order....

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes

Afaik, you have to name the different flavours of X, Y and Z differently.

  

Afaik, if they are named the same, .NET will only load the first one and reuse that for the others.

  

https://thebuildingcoder.typepad.com/blog/2019/11/dll-conflicts-and-replicating-schedule-sort-order....

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report