make versions consistent for PackCommand, add back * to test packages, remove --version-suffix from publish

This commit is contained in:
Bryan 2016-05-05 10:51:58 -07:00
parent 51968b7105
commit abc155e273
7 changed files with 7 additions and 9 deletions

View file

@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.0-preview1-*",
"compilationOptions": {
"emitEntryPoint": true
},

View file

@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.0-preview1-*",
"compilationOptions": {
"emitEntryPoint": true
},

View file

@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.0-preview1-*",
"compilationOptions": {
"emitEntryPoint": true
},

View file

@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "1.0.0-preview1-*",
"compilationOptions": {
"emitEntryPoint": true
},

View file

@ -625,9 +625,7 @@ namespace Microsoft.DotNet.Cli.Build
outputDir,
"--configuration",
configuration,
Path.Combine(c.BuildContext.BuildDirectory, "src", project),
"--version-suffix",
buildVersion.VersionSuffix)
Path.Combine(c.BuildContext.BuildDirectory, "src", project))
.Environment("DOTNET_BUILD_VERSION", buildVersion.VersionSuffix)
.Execute()
.EnsureSuccessful();

View file

@ -162,7 +162,7 @@ namespace Microsoft.DotNet.Cli.Build
var versionSuffix = testPackageProject.VersionSuffix;
if (versionSuffix.Equals(s_testPackageBuildVersionSuffix))
{
versionSuffix = c.BuildContext.Get<BuildVersion>("BuildVersion").VersionSuffix;
versionSuffix = c.BuildContext.Get<BuildVersion>("BuildVersion").CommitCountString;
}
var fullPath = Path.Combine(c.BuildContext.BuildDirectory, relativePath.Replace('/', Path.DirectorySeparatorChar));

View file

@ -5,7 +5,7 @@ namespace Microsoft.DotNet.Cli.Build
public class BuildVersion : Version
{
public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCountString}";
public string VersionSuffix => $"{CommitCountString}";
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}";
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
public string NetCoreAppVersion => $"{Major}.{Minor}.{Patch}-rc2-3{CommitCountString}";
public string ProductionVersion => $"{Major}.{Minor}.{Patch}";