When NuGet creates my package I get an error for including a prerelease package and it gives me the following result:
C:\LR\Mms\Services\Mms\TaskAgentProvisioner\Tools\agents\2.109.1\externals\nuget\NuGet.exepack "C:\a\1\s\Harvest.Auth\Harvest.Auth.csproj" -OutputDirectory"C:\a\1\s" -Properties Configuration=release -version 1.0.1MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.Attempting to build package from 'Harvest.Auth.csproj'.Packing files from 'C:\a\1\s\Harvest.Auth\bin\Release'.Found packages.config. Using packages listed as dependenciesA stable release of a package should not have on a prerelease dependency. Either modify the version spec of dependency"Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory (≥4.0.209160138-alpha)" or update the version field.System.Exception: Unexpected exit code 1 returned from tool NuGet.exeat Microsoft.TeamFoundation.DistributedTask.Task.Internal.InvokeToolCmdlet.ProcessRecord()at System.Management.Automation.CommandProcessor.ProcessRecord()PowerShell script completed with 1 errors.
I know that I need to mark my NuGet package as prerelease, however you can see in the first line it does not pickup my tag and version correctly which is 1.0.1-alpha, it only picks up 1.0.1.
I've also tried adding [assembly: AssemblyInformationalVersion("1.0.1-alpha")]
per the NuGet documentation located here, however this didn't work either.
I was hoping there would be a command line to force it to create anyway, since we use it internally, and don't really care if it's pre-release or not. Here's the pack commands.
I should also note that we are using the NuGet packager that is part of VSTS.