Ask Your Question
1

What is the process for utilizing the Assembly Version as the Package Version while creating a NuGet package?

asked 2023-07-12 11:47:57 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-12 12:12:02 +0000

pufferfish gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-12 11:47:57 +0000

Seen: 7 times

Last updated: Jul 12 '23