run addin building with .NET 8 in inventor 2024

run addin building with .NET 8 in inventor 2024

jose_loaiza5W6L6
Contributor Contributor
607 Views
6 Replies
Message 1 of 7

run addin building with .NET 8 in inventor 2024

jose_loaiza5W6L6
Contributor
Contributor

Hello everyone, I hope your are very well

 

I developed an addin for inventor 2025 with.NET 8,  now the requirement is to run with inventor 2024 as well. My question is, must I create a new project with.NET Framework 8 to run into inventor 2024, or is there any approach where I can use my actual project with .net 8 to run into 2024?

 

The Idea is not to have two projects for many reasons: maintenance, productivity, security, and reliability

 

I appreciate any help.

Thank you so much

 

0 Likes
608 Views
6 Replies
Replies (6)
Message 2 of 7

bradeneuropeArthur
Mentor
Mentor

@JelteDeJong has a great topic on this you can compile it twice differently. Have a look on his site please...

http://hjalte.nl/tutorials/95-compile-and-debug-multiple-net-versions

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 7

Pineapple2024
Advocate
Advocate

I copy solution file (.sln) and change target.

I do this to target different IV version.

Should work with targeting different .Net.

Set it to build to different folder.

Message 4 of 7

JelteDeJong
Mentor
Mentor

You dont need to copy the solution file. All changes can be done from your project files. Visual studio Will automaticaly create folders for al target frame works. 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 5 of 7

Maxim-CADman77
Advisor
Advisor

Dear @JelteDeJong, with all the respect, but you article feels unfinished.
It contains the good/clear start point "Configuring References for Different Frameworks"..

But in order to "Visual Studio will automatically create folders for all target frameworks" I guess user needs to do some further adjustments which is unclear to anybody who does this for the first time. By default VS places generated DLL to Output Folder and thus overwrites DLL there and you don't tell reader how to escape this and generate files in different folders..



Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 6 of 7

bradeneuropeArthur
Mentor
Mentor

You will need to copy the files to one of the addin folders for Inventor either by doing it manually or by scripting in the postbuilt event, with xcopy command. This is normal best practice.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 7 of 7

Maxim-CADman77
Advisor
Advisor

Dear @bradeneuropeArthur, in fact you don't need to script this - Visual Studio can do this for you a kind of naturally - see the post in my thread.

Please vote for Inventor-Idea Text Search within Option Names

0 Likes