Inventor AddIn with .NET Core 3.1 or .NET 5.0

Inventor AddIn with .NET Core 3.1 or .NET 5.0

mr
Participant Participant
1,428 Views
7 Replies
Message 1 of 8

Inventor AddIn with .NET Core 3.1 or .NET 5.0

mr
Participant
Participant

Hey Community,

 

In the past I wrote some specific AddIns for Inventor, especially for our company.

 

Now I want to start with new ideas for some AddIns and I'm not sure wich framework I should or can use.

 

My Idea is to use the .NET Core framework because of some special benefits with it, but I'm not sure wether Invetor supports AddIns written in this framework.

 

Has someone used this framework before and can report some positiv experience with it?

 

I just want to avoid trouble by using an unsupported framework for my AddIn.

0 Likes
1,429 Views
7 Replies
Replies (7)
Message 2 of 8

bradeneuropeArthur
Mentor
Mentor

Make a copy of your project and test it out.

I think it will work!

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 3 of 8

mr
Participant
Participant

This is what I have done in the meantime, but the result is not as I desired.

 

I used a new untouched original visual studio project template from the Inventor SDK 2022 and converted it to several standards with the folliwng results:

 

- .NET Core 3.1:

The AddIn is listed in the Inventor extensions list, but Inventor isn't able to load the AddIn.

 

- .NET 5.2:

Same as for .NET Core 3.1

 

- .NET Standard 2.1:

The AddIn is listed and Inventor is also able to load the AddIn, but if I add the EntityFramework.Core from the NuggetPackages, without using it, Invetor isn'T able to load the AddIn anymore

 

 

For now I'm sure if I did something wrong, or if Inventor simply does not support this frameworks.

 

0 Likes
Message 4 of 8

jjstr8
Collaborator
Collaborator

I'm not surprised that a .NET Core/5 addin wouldn't load.  Have you tried adding EntityFramework to a .NET Framework addin?  I'm currently using VS2019 with .NET Framework 4.7.2 for IV2019.

0 Likes
Message 5 of 8

mr
Participant
Participant

What's the reason you're not surprised that .NET Core / 5 didn't work with Inventor?

 

I've already added EntityFramework 6 to my .NET Framework 4.8 project, but I also have problems using some of the features of EntityFramework.

 

The reason I choose .NET Core / 5 is because I start with some new ideas and a new project. And I think .NET Core / 5 is a future-proof framework.

 

I just want to avoid my add-in being based on an old, unsupported framework in a few years time.

0 Likes
Message 6 of 8

jjstr8
Collaborator
Collaborator
My surprise is not really based on anything concrete, just past occasions where Inventor gets touchy with certain implementations in addins. At this point I'm not worried about .NET Framework going away anytime soon. Even with 4.8 being labelled as the "final" version, Microsoft is not setting an end date for Framework. That being said, I hope we can jump into .NET 5.0 addins without much headache. I don't have DB needs for Inventor addins, but I've done a little EF6 outside of that. I suggest posting your issue, you might get a response.
0 Likes
Message 7 of 8

pockybum522
Enthusiast
Enthusiast
Message 8 of 8

pockybum522
Enthusiast
Enthusiast

I was informed that my project was still a .NET Framework app. No idea how that happened. I have done more research and take a look in that thread and there should be what you want now with a true .NET 6 app

0 Likes