Addin Does Not Work When Changing Target framework

Addin Does Not Work When Changing Target framework

Anonymous
Not applicable
494 Views
3 Replies
Message 1 of 4

Addin Does Not Work When Changing Target framework

Anonymous
Not applicable

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

0 Likes
495 Views
3 Replies
Replies (3)
Message 2 of 4

adam.nagy
Autodesk Support
Autodesk Support

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
0 Likes
Message 3 of 4

MattH_Work
Collaborator
Collaborator

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 2026
Vault Pro 2026
0 Likes
Message 4 of 4

adam.nagy
Autodesk Support
Autodesk Support

In Inventor.exe.config



Adam Nagy
Autodesk Platform Services
0 Likes