Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Addin Does Not Work When Changing Target framework

3 REPLIES 3
Reply
Message 1 of 4
TJK77
354 Views, 3 Replies

Addin Does Not Work When Changing Target framework

Hi all,

 

I changed the target framework for my project from .NET Framework 2.0 to 4.0, and also changed the Inventor.exe.config file to read <supportedRuntime version="v4.0"/>

 

Now when I debug the ribbon tab that I am creating is nowhere to be found, but if i change back to 2.0 and debug, the ribbon tab is back...

 

Any ideas?

 

TIA,

 

-Ted

3 REPLIES 3
Message 2 of 4
adam.nagy
in reply to: TJK77

Hi there,

 

Which Inventor version is it?

 

Did you also add the V2RuntimeActivationPolicy support?

 

  <startup useLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntimeversion="v4.0"/>

  </startup>

 

Mixed managed modules using a previous .NET framework version would need this in order to be loaded.

 

I hope this helps.

 

Cheers,

 

 



Adam Nagy
Autodesk Platform Services
Message 3 of 4
MattH_Work
in reply to: adam.nagy

Did you also add the V2RuntimeActivationPolicy support?

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntimeversion="v4.0"/>

</startup>

 

Where would I place this?

 

Regards

 

Matt


MattH
Product Design Collection 2024
Vault Pro 2024
Message 4 of 4
adam.nagy
in reply to: MattH_Work

In Inventor.exe.config



Adam Nagy
Autodesk Platform Services

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

Post to forums  

Autodesk Design & Make Report