How to use the dotnet-pack --version-suffix with csproj? : <p>I'm trying to use the .net Core tools RC4 dotnet pack command to create a nuget package with a suffix.</p>

<p>I can create "MyProject.1.2.3.nupkg" successfully but I want "MyProject.1.2.3-beta.nupkg".</p>

<p>According to the documentation <a href="https://docs.microsoft.com/en-us/dotnet/articles/core/preview3/tools/dotnet-pack" rel="noreferrer">here</a> the --version-suffix "Updates the star in -* package version suffix with a specified string."</p>

<p>I've managed to find where dotnet pack is getting it's version from - dotnet pack uses msbuild under the <a href="https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target" rel="noreferrer">covers which uses the <code>&lt;version/&gt;</code> element</a> in the csproj file. For example <code>&lt;version&gt;1.2.3&lt;/version&gt;</code> creates a file called "MyProject.1.2.3.nupkg".</p>

<p>If I set the <code>&lt;version/&gt;</code> in the csproj to something like 1.2.3 and specify --version-suffix beta then it doesn't append the -beta but it does build.</p>

<p>If I set version to be <code>&lt;version&gt;1.2.3-*&lt;/version&gt;</code> then dotnet restore breaks saying '1.2.3-*' is not a valid version string.</p>

<p>I think I'm close; what have I got wrong?</p>
