.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD 2025 - ported code failing to show

1 REPLY 1
Reply
Message 1 of 2
nsandersonMKCFD
197 Views, 1 Reply

AutoCAD 2025 - ported code failing to show

Hi all,

 

I've spent the last few weeks porting our .NET Framework  4.8 VB.NET WinForm code over to .NET 8 using the Upgrade Assistant to support ACAD 2025. 

The code is a bit old (some was originally ported from VB6) but I've upgraded the COM Interop reference and the AcCoreMgd, AcDBMgd and AcMgd DLLs to those supplied by 2025.

 

I've made sure that all the SQL, ODBC, Windows Compatibility and so on NuGet packages are installed against the code (using latest stable versions for .NET 8) and all build successfully.

 

Now to AutoCAD 2025 - I have put all the output files for the DLLs (and also the deps.json files just in case?  Do I need those?) into a single directory on the build & target machine and modified the LISP file that works under .NET Framework to NETLOAD our DLLs so that it points to the new .NET 8 versions.

 

However, on trying to APPLOAD the LISP file into AutoCAD 2025, I get nothing.  The LISP file appears to load successfully, it says it's loaded successfully and it appears, greyed out, in the Loaded Applications tab.

But then, nothing - no errors, no warnings it just doesn't display our plug ins.

 

I have to admit, I'm new to .NET 8 (been a Framework coder since 1.1!) but is there something I'm missing to get this running on 2025 like it does under 2024?  Do I need to install the NuGet package DLLs somewhere (I though they were copied to the bin/Output folder when you build it?)

Just really wondering if anyone has experienced a similar issue and how you resolved it?

 

Many thanks

1 REPLY 1
Message 2 of 2

Hello

In NET 8 you must to put all dlls in the output directory.

Also the NuGet's dlls

 

Try to add in csproj:

<PropertyGroup>

<!--see: https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#copylocallockfileassemblies -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<ProduceReferenceAssemblyInOutDir>true</ProduceReferenceAssemblyInOutDir>
<!--see: https://learn.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support -->
<!--<EnableDynamicLoading>true</EnableDynamicLoading>-->
<!--see: https://stackoverflow.com/questions/43837638/how-do-i-get-net-core-projects-to-copy-nuget-references... -->
<!--<RestoreProjectStyle>PackageReference</RestoreProjectStyle>-->
</PropertyGroup>

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta