PackageContentsGenerator 1.0.3

dotnet add package PackageContentsGenerator --version 1.0.3
                    
NuGet\Install-Package PackageContentsGenerator -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PackageContentsGenerator" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PackageContentsGenerator" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="PackageContentsGenerator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PackageContentsGenerator --version 1.0.3
                    
#r "nuget: PackageContentsGenerator, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PackageContentsGenerator@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PackageContentsGenerator&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=PackageContentsGenerator&version=1.0.3
                    
Install as a Cake Tool

PackageContentsGenerator

Generates an AutoCAD PackageContents.xml manifest by reading CommandMethod attributes from a compiled .NET assembly.

Installation

Add the package to an AutoCAD plug-in project:

<ItemGroup>
	<PackageReference Include="PackageContentsGenerator" Version="1.0.3" PrivateAssets="all" />
</ItemGroup>

Set the minimum AutoCAD series:

<PropertyGroup>
  <PackageContentsSeriesMin>R26.0</PackageContentsSeriesMin>
</PropertyGroup>

That is the complete minimum configuration. After a successful build, the package automatically writes PackageContents.xml to the project directory. It locates the packaged generator and creates its assembly reference list internally.

Configuration

Property Default Purpose
PackageContentsGenerationEnabled true Set to false to disable automatic generation.
PackageContentsSeriesMin Required Minimum AutoCAD series, such as R26.0.
PackageContentsSeriesMax PackageContentsSeriesMin Maximum AutoCAD series.
PackageContentsPath $(MSBuildProjectDirectory)\PackageContents.xml Manifest output path.
PackageContentsOutputFileName PackageContents.xml Default filename used when PackageContentsPath is not set.
PackageContentsAppName $(AssemblyName) Application name in the manifest.
PackageContentsDescription $(Description), then the app name Application description.
PackageContentsCompany $(Company) Publisher or company name.
PackageContentsVersion $(Version) Application version.
PackageContentsReferencePathsFile Under $(IntermediateOutputPath) Generated assembly reference list.
PackageContentsGeneratorDotNetHost dotnet Host used to run the generator.
PackageContentsConfigurations $(Configurations) Semicolon-separated configurations used to create version-specific component blocks. Supported suffixes are A24 through A27.

Example with overrides:

<PropertyGroup>
  <PackageContentsSeriesMin>R25.0</PackageContentsSeriesMin>
  <PackageContentsSeriesMax>R26.0</PackageContentsSeriesMax>
  <PackageContentsPath>$(OutputPath)PackageContents.xml</PackageContentsPath>
  <PackageContentsAppName>My AutoCAD Tools</PackageContentsAppName>
  <PackageContentsDescription>Company drafting tools</PackageContentsDescription>
  <PackageContentsCompany>Example Company</PackageContentsCompany>
</PropertyGroup>

The target can also be invoked explicitly:

dotnet msbuild MyPlugin.csproj -t:GeneratePackageContentsManifest

Migrating from manual integration

When using version 1.0.1 or later, remove consumer-side logic that:

  • Resolves PackageContentsGenerator.dll from the NuGet package path.
  • Copies or stages generator runtime DLLs.
  • Writes a reference-path file.
  • Runs the generator through a custom Exec target.

Keep only the package reference and the applicable properties above. PackageContentsPath is optional unless the default project-root output is unsuitable.

Command-line usage

Direct invocation remains supported:

dotnet PackageContentsGenerator.dll <assemblyPath> <outputPath> <appName> <description> <company> <version> <seriesMin> [seriesMax] [refPathsFile]
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 88 9/8/2026
1.0.2 92 9/8/2026
1.0.1 91 9/8/2026
1.0.0 98 9/6/2026