Unknown Command error in AutoCAD 2025 after .Net migration to 8.0(core).

Unknown Command error in AutoCAD 2025 after .Net migration to 8.0(core).

pts_user
Contributor Contributor
2,995 Views
8 Replies
Message 1 of 9

Unknown Command error in AutoCAD 2025 after .Net migration to 8.0(core).

pts_user
Contributor
Contributor

Hi All,

 

I am currently migrating an external 3D PDF plug-in from 2024 to 2025. The plugin loads onto the AutoCAD 2024 as well as the AutoCAD 2025 and also shows up on the Ribbon Bar. The challenge that I am facing is that the 2024 version correctly functions with the plugin but for the 2025 version it shows an Unknown command error while clicking on the plugin.

 

Info:

Project Developed in Visual Studio 2022

C# .NET core 8.0 Utilized

 

I have tried:
Changing PackageContent.xml to match the correct series which is "r25.0"

Making sure all references are copy local = false

Making sure all references point to the correct folder of AutoCAD 2025 and also made sure that the module name is pointing to the correct dll location.

Verifying the plugin bundle was put in the test users C:/Program Files/Autodesk/ApplicationPlugins folder.

Added the appropriate Nudget packages to the project(AutoCAD.NET and AutoCAD.NET.Model).

Upgraded the project to .net 8.0 using the Visual Studio upgrade assistant.

 

 

Please let me know why there may be a discrepancy between systems when utilizing this plugin.

0 Likes
Accepted solutions (1)
2,996 Views
8 Replies
Replies (8)
Message 2 of 9

serbestcihangir
Contributor
Contributor

Hi,

I have similer problem with my plugin. After upgrading the plugin to .NET 8.0 for AutoCAD 2025, it is not work with AutoCAD 2024 and lower versions, anymore. Does anyone have any idea about this issue?

0 Likes
Message 3 of 9

Ed__Jobe
Mentor
Mentor
Accepted solution

You can't use the same dll for both versions. For versions prior to 2025, the project needs to target .NET Framework 4.8. You should read this blog post.

Ed


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.
How to post your code.

EESignature

Message 4 of 9

Ed__Jobe
Mentor
Mentor

I hope you kept a backup of your 4.8 project before you upgraded to core 8.

Ed


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.
How to post your code.

EESignature

Message 5 of 9

serbestcihangir
Contributor
Contributor

Kindly, thank you for your quick reply and help. Yes, I keep the main code always, before any changes. 

0 Likes
Message 6 of 9

Ed__Jobe
Mentor
Mentor

If you want to delete a post, don't just delete the text. Use the Report button and ask the moderator to delete it. 😁

Ed


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.
How to post your code.

EESignature

Message 7 of 9

serbestcihangir
Contributor
Contributor

Thank you. I was trying to delete my previous post that sent to wrong user. 😁 I deleted the text because I couldn't find any button for deleting. 

0 Likes
Message 8 of 9

serbestcihangir
Contributor
Contributor
Just another question: I can't see ACCEPT SOLUTION button on your post to accept post as solution.
0 Likes
Message 9 of 9

Ed__Jobe
Mentor
Mentor

@serbestcihangir wrote:
Just another question: I can't see ACCEPT SOLUTION button on your post to accept post as solution.

The forums seem to be having problems this morning. I clicked it for you.

Ed


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.
How to post your code.

EESignature

0 Likes