Using net6.0

Using net6.0

pierre.plaissy
Contributor Contributor
2,235 Views
2 Replies
Message 1 of 3

Using net6.0

pierre.plaissy
Contributor
Contributor

Hi,

I am trying to make a plugin using net6.0 instead of the usual net framework 4.8. (on Autocad Architecture 2022).

I can see on the command line that the plugin is loading correctly (at least without visible error), but it does not boot on the Initialize method and the commands are not loaded.

 

If anyone has an idea that would be great.

Accepted solutions (1)
2,236 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

You cannot use .NET Core for AutoCAD plugins, you have to use the .NET framework.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3

pierre.plaissy
Contributor
Contributor

thank you Gilles,

I suspected it but was surprised to see that there was no error loading.

Fortunately, according to Madhukar Moogala's answer (at the end of the blog post below), this may soon be possible...

https://adndevblog.typepad.com/autocad/2020/05/autocad-2021-net-api-on-nuget.html