I am trying to create a Nuget Package using azure devops. I want to create a pre-release version of a package before a stable release is created.Currently am trying to package an .netstandard 2.0 app.
What i have tried -
Tried to set version in csproj - <Version>1.0.6-alpha</Version>
. This actually works but am not sure how can this alpha tag be removed when i want to promote it to a stable version
I want the package to take the version from the assembly (not use auto versioning ) for example if the assembly version is 1.0.0 i need a package that is 1.0.0-alpha and later 1.0.0 when its moved to production . I can see many solutions online that uses preset version numbers (in the variables tab) and appending build number etc but i am looking for a way that can use the version from assembly itself and not custom defined. This is the link which explains package versioning
Below is the pipeline that i have tried
--output
to specify the artifacts directory:docs.microsoft.com/en-us/dotnet/core/tools/… – Leo Liu-MSFT