I am trying to create a prerelease build for a .net-standard 2.0 library in VSTS. I have created a build with the following steps
- dotnet restore version 2
- dotnet build version 2
- dotnet pack version 2
- nuget push version 2
When I use the environment variable (PackageName) as $(Build.BuildNumber)-beta
as my pack version. The pack fails with the error BuildName_2018.7.11.1-beta is not a valid version string
. I have previously used this environment variable as my pack version in .net-framework builds with success.
v0.1.0
thev
was the problem. – Suk