Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The process for utilizing the Assembly Version as the Package Version while creating a NuGet package is as follows:

  1. Open your project in Visual Studio.
  2. Right-click on your project and select "Properties".
  3. Navigate to the "Package" tab.
  4. In the "Package version" field, enter "$(AssemblyVersion)".
  5. Save your changes and build your project.
  6. In the output folder, you should have a .nupkg file with the same version as the assembly version.

Note: If your project has multiple assembly files, make sure to set the AssemblyVersion attribute in all the files to the same version number.