PackageContentsGenerator 1.0.3
dotnet add package PackageContentsGenerator --version 1.0.3
NuGet\Install-Package PackageContentsGenerator -Version 1.0.3
<PackageReference Include="PackageContentsGenerator" Version="1.0.3" />
<PackageVersion Include="PackageContentsGenerator" Version="1.0.3" />
<PackageReference Include="PackageContentsGenerator" />
paket add PackageContentsGenerator --version 1.0.3
#r "nuget: PackageContentsGenerator, 1.0.3"
#:package PackageContentsGenerator@1.0.3
#addin nuget:?package=PackageContentsGenerator&version=1.0.3
#tool nuget:?package=PackageContentsGenerator&version=1.0.3
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.dllfrom the NuGet package path. - Copies or stages generator runtime DLLs.
- Writes a reference-path file.
- Runs the generator through a custom
Exectarget.
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 | Versions 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. |
-
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.