Inventor Customization

Reply
Contributor
TJK77
Posts: 14
Registered: ‎03-22-2012
Message 1 of 4 (165 Views)

Addin Does Not Work When Changing Target framework

165 Views, 3 Replies
10-24-2012 03:53 PM

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

ADN Support Specialist
adam.nagy
Posts: 521
Registered: ‎03-26-2007
Message 2 of 4 (147 Views)

Re: Addin Does Not Work When Changing Target framework

11-05-2012 06:54 AM 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
Developer Technical Services
Autodesk Developer Network
Valued Contributor
MattH_Work
Posts: 141
Registered: ‎11-16-2007
Message 3 of 4 (134 Views)

Re: Addin Does Not Work When Changing Target framework

11-15-2012 04:15 AM 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

ADN Support Specialist
adam.nagy
Posts: 521
Registered: ‎03-26-2007
Message 4 of 4 (112 Views)

Re: Addin Does Not Work When Changing Target framework

11-22-2012 04:49 AM in reply to: MattH_Work

In Inventor.exe.config



Adam Nagy
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube