.NET 8.0 Assembly Registration Issue : System.Runtime is not found

.NET 8.0 Assembly Registration Issue : System.Runtime is not found

Pankaj_DEWANI
Observer Observer
3,495 Views
4 Replies
Message 1 of 5

.NET 8.0 Assembly Registration Issue : System.Runtime is not found

Pankaj_DEWANI
Observer
Observer

Hi,

 

I am migrating my project to AutoCAD 2025. And for my .NET Framework 4.8 DLL, I followed all the steps mentioned in the 'step by step' migration guide available in below forum post:

https://forums.autodesk.com/t5/net/migration-guide-net-framework-to-autocad-2025-net-8-0/m-p/1267627...

 

Using that, I could successfully migrate my DLL to .NET 8.0. However, trying to get the DLL registered, I am facing error below:

 

Error (active) MSB3217 Cannot register assembly "<FULLPATH_TO_MYDLL>". Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

 

Has someone faced similar problem? Any suggestions to resolve it?

 

PS.

  1. Included below tag in my csproj file to register the dll:

    <RegisterForComInterop>true</RegisterForComInterop>

 

  2. .NET 8.0 SDK was installed from official microsoft website.

 

Thanks in advance,

Regards,

Pankaj

0 Likes
3,496 Views
4 Replies
Replies (4)
Message 2 of 5

keith_henriksen
Explorer
Explorer

I'm having the same issue.

0 Likes
Message 3 of 5

ActivistInvestor
Mentor
Mentor

Hosting COM components in .NET 8.0 is a bit problematic.

 

I would suggest you read this thread.

0 Likes
Message 4 of 5

keith_henriksen
Explorer
Explorer

Thanks Pankaj.

 

My final solution will be an EXE that uses the Inventor API. Do you have experience leveraging the Inventor API in the context of a .NET 8 EXE? Any gotcha's I need to anticipate working with the COM/DCOM/out of process server?

0 Likes
Message 5 of 5

sreeparna_mandal
Autodesk
Autodesk
0 Likes