Files
autodesk/Plant3D2026/P_Rec_Annot/docs/build.md
T

2.0 KiB

Build

References resolve in this order: explicit AutoCAD2026ManagedDir and Plant3D2026ManagedDir, an untracked Local.Build.props, then the validated standard Plant 3D 2026 install directory. No Autodesk binary is copied into the repository or bundle. If discovery does not find all required assemblies, pass the explicit properties shown below.

The workstation has .NET SDK 8.0.423 and Autodesk AutoCAD Plant 3D 2026 installed. The paths are deliberately supplied at build time; no machine-specific Autodesk path is stored in project files.

Detected assembly inventory:

Assembly Assembly version Build input
AcMgd.dll 25.1.0.0 AutoCAD2026ManagedDir
AcDbMgd.dll 25.1.0.0 AutoCAD2026ManagedDir
AcCoreMgd.dll 25.1.0.0 AutoCAD2026ManagedDir
AdWindows.dll 5.2.1.1 AutoCAD2026ManagedDir
PnP3dObjectsMgd.dll 17.0.60.1 Plant3D2026ManagedDir
PnPProjectManagerMgd.dll 17.0.60.1 Plant3D2026ManagedDir

The actual build used:

dotnet restore .\Plant3D2026\P_Rec_Annot\PRecAnnot2026.sln
dotnet build .\Plant3D2026\P_Rec_Annot\PRecAnnot2026.sln --configuration Release `
  /p:AutoCAD2026ManagedDir="<AutoCAD managed directory>" `
  /p:Plant3D2026ManagedDir="<Plant 3D managed directory>"

PRecAnnot.Plant3D2026 now compiles against the real AutoCAD/Plant 3D 2026 metadata. The adapter has real IExtensionApplication, CommandMethod, PlantApplication.CurrentProject, Document, Editor, and Autodesk.Windows Ribbon references. The previous conditional foundation-only adapter was removed. Autodesk references are Private=false and CopyLocal=false.

Release emits one non-fatal WindowsBase reference conflict caused by Autodesk's legacy reference surface versus the .NET 8 reference pack. It does not copy Autodesk assemblies to output. Autodesk DLLs are excluded from Git, NuGet, bundle, and publish output.

The local smoke bundle is created at Plant3D2026\P_Rec_Annot\artifacts\P_Rec_Annot.bundle. Deploy is NOT PERFORMED.