Set the target framework to .NET 8.0 and create the project.
- Invoke the Reference Manager in one of two ways:
- Select Project menu
Add Project Reference/ Add COM Reference.
- Right-click Dependencies in the Solution Explorer and select Add Project Reference/ Add COM Reference.
- Navigate to the installation directory of Autodesk Civil 3D and choose the following base libraries: AcDbMgd.dll, AcMgd.dll, AcCoreMgd.dll, AecBaseMgd.dll, and AeccDbMgd.dll.
Note: These are the base AutoCAD and Autodesk Civil 3D managed libraries. Your .NET assembly can use classes defined in additional libraries.
- To allow debugging and reduce the disk space requirements for your projects, select these libraries in the Visual Studio Solution Explorer, and set the Copy Local property to False.