.NET 8.0 Assembly Registration Issue : System.Runtime is not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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