<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: .NET Framework 4.8 unusable on ACAD 2025? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699799#M4531</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7415391"&gt;@nsandersonMKCFD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;...I have a feeling this is going to be a l-o-n-g job.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Indeed. Sorry.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 16:08:49 GMT</pubDate>
    <dc:creator>pendean</dc:creator>
    <dc:date>2024-04-10T16:08:49Z</dc:date>
    <item>
      <title>.NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699749#M4530</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably a bit of a dumb question, but I'll ask it anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a large amount of .NET Framework 4.8 code that has been happily working on AutoCAD 2021-2024 but now we've been presented with 2025 and obviously the landscape has shifted to only support NET 8 (why no dual interface?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obvious question is therefore is there a way to get old Framework 4.8 code working 'as is' on 2025 or do we have to port the whole lot of our plugins and supporting DLLs over to NET 8?&amp;nbsp; Or is there a way to port only the plugins and have the supporting DLLs still sat in Framework 4.8 if both runtimes are installed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a feeling this is going to be a l-o-n-g job.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 15:46:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699749#M4530</guid>
      <dc:creator>nsandersonMKCFD</dc:creator>
      <dc:date>2024-04-10T15:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699799#M4531</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7415391"&gt;@nsandersonMKCFD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;...I have a feeling this is going to be a l-o-n-g job.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Indeed. Sorry.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 16:08:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699799#M4531</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2024-04-10T16:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699863#M4532</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Some assemblies (DLL) built for AutoCAD prior 2025&amp;nbsp; (.NET Framework) seems to load and run correctly in AutoCAD 2025 (it depends on the APIs used in the assembly and requires the .NET Framwork to be installed on the machine).&lt;/P&gt;
&lt;P&gt;If the plugin does not work or if you want to use the new features of .NET 8, you'll have to upgrade.&lt;/P&gt;
&lt;P&gt;You should read &lt;A href="https://forums.autodesk.com/t5/net/migration-guide-net-framework-to-autocad-2025-net-8-0/m-p/12676274#M81355" target="_blank" rel="noopener"&gt;this topic&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 16:37:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699863#M4532</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-04-10T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699882#M4533</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7415391"&gt;@nsandersonMKCFD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to what &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt; said, I think you can relax a little. It's not a matter of changing all your code. It's just a matter of getting your project to compile to NET 8 standards. Yes C# has evolved, but mostly, your code should work as long as there are no compile errors and the thread Gile linked to helps you with that.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 16:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699882#M4533</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-04-10T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699934#M4534</link>
      <description>&lt;P&gt;I think you will probably find difficulty when you discover that you need to support both versions.&amp;nbsp; 2024 and prior as well as 2025.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 17:05:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12699934#M4534</guid>
      <dc:creator>Keith.Brown</dc:creator>
      <dc:date>2024-04-10T17:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12700647#M4535</link>
      <description>&lt;P&gt;You can try to run the .Net 4.8 libraries as is. Sometimes it works.&lt;BR /&gt;The main problem is that .Net 8.0 is an inferior environment. The most important components have been removed from it. Problems arise when working with the Windows registry, SQL, and computer hardware (WMI). But there is an opportunity to compensate for these shortcomings. You need to download individual libraries as NuGet packages. You can create new Net 8.0 projects, paste the old code into them almost without modification, connect the necessary NuGet packages and run the code under AutoCAD 2025.&lt;BR /&gt;The good news is that your Net 8.0 projects can call methods from your other Net 4.8 projects. There is no need to recompile anything. The main thing is that no old auxiliary dlls use libraries that are not in net 8.0.&lt;BR /&gt;The bad news is that AutoCAD 2025 already uses several NuGet packages and you need to connect to the project exactly those versions of NuGet that AutoCAD uses, and not the latest versions. When AutoCAD is updated, you will probably have to recompile your plugin.&lt;BR /&gt;The second bad news is that another plugin can load other versions of nuGet libraries and you will get a fatal crash of AutoCAD. Compatibility between different plugins is now broken.&lt;BR /&gt;The third bad news is that you need to deliver a bunch of auxiliary dlls from these NuGet packages to the computers of all users. And load these dlls from your code when initializing your plugin (or write them to the AutoCAD folder).&lt;BR /&gt;And there are still a few things that make it necessary to slightly modify the old source codes.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 00:26:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12700647#M4535</guid>
      <dc:creator>AVCPlugins</dc:creator>
      <dc:date>2024-04-11T00:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12703893#M4536</link>
      <description>&lt;P&gt;Thanks for the information everyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do have a requirement to support customers on previous versions of AutoCAD so this makes it equally tricky.&amp;nbsp; Two code bases?&amp;nbsp; Feels like VB6 to .NET all over again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assumed that as they were still including .NET Framework 4.8 in the 2025 install, that things would work as is over a few years transition (.NET Framework 4.8 is supported for the lifetime of Windows 11, after all)&lt;/P&gt;&lt;P&gt;I believe I read that the .NET 8.0 implementation was just going to be a wrapper around the original COM/Framework or was that just the .NET 6.0 beta in 2024?&amp;nbsp; They seem to have broken a lot in one ill-conceived shift?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, our mix of VB.NET and C# Framework 4.8 code refuses to get going in 2025 but works absolutely fine in 2024.so I suspect a heavy porting project is about to get scheduled!&amp;nbsp;&lt;/P&gt;&lt;P&gt;2025 crashes out quite spectacularly as it fails to find the registered version of a particular DLL.&amp;nbsp; Perhaps it is as &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2783534"&gt;@AVCPlugins&lt;/a&gt;&amp;nbsp;says, "&lt;SPAN&gt;Problems arise when working with the Windows registry, SQL,..." which that common DLL does a lot of.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the information - I feel a costly meeting with my boss is required!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 08:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12703893#M4536</guid>
      <dc:creator>nsandersonMKCFD</dc:creator>
      <dc:date>2024-04-12T08:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12704135#M4537</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Two code bases?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;No way! As with past API incompatibilities, you simply create multiple projects for different DLLs. All code is pasted into all projects as links. Next, you configure the launch of the desired DLL depending on the version of AutoCAD in the PackageContents.xml file or in a separate start DLL compiled under Net 4.8. This way I have the same code working for different versions of AutoCAD and BricsCAD. The code will sometimes contain directives to the compiler, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#if NET8_0_OR_GREATER&lt;BR /&gt;using RegistryKey = Microsoft.Win32.RegistryKey;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#if NET8_0_OR_GREATER&lt;BR /&gt;Process.Start(new ProcessStartInfo(AdminMailTo + subj) { UseShellExecute = true });&lt;BR /&gt;#else&lt;BR /&gt;Process.Start(AdminMailTo + subj);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;I assumed that as they were still including .NET Framework 4.8 in the 2025 install, that things would work as is over a few years transition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No. Some utilities that come with AutoCAD still work on Net4.8. But AutoCAD will never support this again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;I believe I read that the .NET 8.0 implementation was just going to be a wrapper&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No.&amp;nbsp;The idea of Net 8.0 is so that all code can be more easily recompiled for Unix (OS on Linux, Andriod, MacOS, etc.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;They seem to have broken a lot in one ill-conceived shift?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, Microsoft did a great despicable thing. But still, they ported some libraries intended only for Windows to Net 8.0. For example, WinForms works great. Other libraries have been forgotten for some reason. I don't see the logic. Microsoft has all the sources for working with the Windows registry. What prevented them from emulating this work under Unix, like WinForms is emulated? Nothing stopped them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;I suspect a heavy porting project is about to get scheduled!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes. I spent about a month on this. However, it’s easier for you - all the problems are already known. In addition, Autodesk announced the change to Net almost a year ago. We've all had time to play around with the beta. My plugins were republished in the AppStore on the release day of AutoCAD 2025.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Read my detailed report &lt;A href="https://adn-cis.org/forum/index.php?topic=11057.0" target="_blank" rel="noopener"&gt;here&lt;/A&gt; (this is a Russian-language Autodesk forum, but Google will help you with the translation)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 10:28:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12704135#M4537</guid>
      <dc:creator>AVCPlugins</dc:creator>
      <dc:date>2024-04-12T10:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework 4.8 unusable on ACAD 2025?</title>
      <link>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12712293#M4538</link>
      <description>&lt;P&gt;Thanks for all the input.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're coming up with a solution to translate all the AutoCAD (including OEM!) and common support DLL projects over to NET 8.&amp;nbsp; We're going to have to keep 2 versions live as some of our customers are reticent to move off their 2021-2024 AutoCAD software and they pay the bills!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weirdly, I tried converting one of our AutoCAD DLLs over to NET 8 using the MS Upgrade tool.&amp;nbsp; After spending quite a while changing all the Windows.Forms gadget references to System.Windows.Forms ones (seriously, what else would it be?) I ended up with 4 errors due to unknown references to 2 of our .NET Framework 4.8 objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After wondering where NET 8 put 'References' (of course it's under Dependencies-&amp;gt;Assemblies...) I managed to add in the AutoCAD libraries and the 2 .NET Framework 4.8 DLLs and much to my surprise not only did it accept them but the code compiled too!&amp;nbsp; Unexpected?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 15:01:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/net-framework-4-8-unusable-on-acad-2025/m-p/12712293#M4538</guid>
      <dc:creator>nsandersonMKCFD</dc:creator>
      <dc:date>2024-04-16T15:01:56Z</dc:date>
    </item>
  </channel>
</rss>

