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

Use AssemblyLoadContext Internally Within Inventor Add-Ins

Use AssemblyLoadContext Internally Within Inventor Add-Ins

With Inventor 2025+ using .NET 8, there is no separate execution context for the add-in to run. So, if there is a Nuget package/assembly version conflict with the add-in and Inventor or another add-in, it will cause an error. Below are some resources for how to do this manually within each add-in.

 

Could this be built into the standard ApplicationAddInServer to prevent the need from doing this manually?

 

Blog article on Inventor add-in implementing AssemblyLoadContext:

https://tylerwarner.dev/how-to-use-assemblyloadcontext-for-isolating-inventor-addin-dependencies

 

Sample Inventor add-in implementing AssemblyLoadContext:

https://github.com/tylerwarner33/autodesk-inventor-assembly-load-context

 

Revit implementation discussion about internal implementation:

https://feedback.autodesk.com/project/forum/thread.html?cap=cb0fd5af18bb49b791dfa3f5efc47a72&forid=%...

 

8 Comments
Yuming.Zeng
Autodesk

Hi @TylerWarner33 ,

Thank you for your idea. This was logged as INVGEN-69391.

We're working on the research.

 

Yuming

TylerWarner33
Advocate

From what I hear, the attempt to do this in Revit was broken for 2026, but expected to be completed in 2027.

soonhui
Advisor

I hope that AutoCAD will also implement the same useful feature, as per here

Yuming.Zeng
Autodesk

@TylerWarner33 @soonhui 

You can give it a try with Inventor 2027 Beta 2 build. To load the addin in a separate Assembly Load Context, you can add below code into your .Addin file:

<UseInventorAssemblyContext >0</UseInventorAssemblyContext >

 

 

ChrisMitchell01
Community Manager
Status changed to: Accepted

You can apply for access to the Inventor Beta program using this link - https://Autode.sk/InventorBeta

TylerWarner33
Advocate

Awesome! I will test it out, thanks @Yuming.Zeng & @ChrisMitchell01.

I just posted the same idea on the Vault Ideas forum here.

This may or may not already be in development.

Yijiang.Cai
Autodesk
Status changed to: Implemented

This idea has been implemented within Autodesk Inventor 2027, and please have a try. Many thanks!

smilinger
Advisor

Great! I hope this is also implemented for Vault.

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

Submit Idea