Adding to the complexity, CoreWF changes when porting to .NET, notably there is limited visual basic scripting support in Roslyn. In the .NET Framework, compiling VB scripts is swift, whereas in .NET, it requires significantly more time to generate an executable expression from scripts.
AP1.X >=1.0_ and AP1.Y >=2.0_
Roslyn will expect more text after the ending ' _' and find it invalid. While we have fixed this issue, there could be more undiscovered inconsistency cases. If you discover failures, be sure to review your workflow and identify any possible invalid scripts, or pass the PKT file to us for closer diagnosis.
Not all crashes/exceptions in plugins are caused by this issue, but it is worth checking the PackageContents.xml file in the subfolders under your plugin folders to ensure that it is properly configured .
For Civil 3D 2025 plugins, be sure to set both SeriesMin and SeriesMax to "R25.0" and Platform to "Civil3D" to ensure it can be loaded and is only loaded in Civil 3D 2025. See more details on AutoCAD 2024 Developer and ObjectARX Help | Runtime Requirements Element Reference
Civil 3D does not rely on Microsoft.AspNetCore.App, so it has not added this reference. If your plugin has a dependency on it, it may prevent the plugin from running.
Solution: Edit the acdbmgd.runtimeconfig.json file located in the Civil 3D root folder by adding a reference to Microsoft.AspNetCore.App. If you are using a script or installer to add it, incorporate logic to check whether the user or other plugins have already included it before adding it to avoid duplication. Also, ensure that the desired version has been installed by Civil 3D using the "dotnet --list-runtimes" command. Otherwise, you may consider including the framework installer within your plugin installer.
{ "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.WindowsDesktop.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "Switch.System.Windows.Controls.ItemsControlDoesNotSupportAutomation": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true } } }