Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 169ef12

Browse files
Change Microsoft.DotNet.Web.Spa.ProjectTemplates to use non-prerelease version number in NuGet package
1 parent f5d58f3 commit 169ef12

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

templates/package-builder/src/build/build.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,13 @@ function copyRecursive(sourceRoot: string, destRoot: string, matchGlob: string)
9191
});
9292
}
9393

94-
function leftPad(str: string, minLength: number, padChar: string) {
95-
while (str.length < minLength) {
96-
str = padChar + str;
97-
}
98-
return str;
99-
}
100-
10194
function getBuildNumber(): string {
10295
if (process.env.APPVEYOR_BUILD_NUMBER) {
103-
return leftPad(process.env.APPVEYOR_BUILD_NUMBER, 6, '0');
96+
return process.env.APPVEYOR_BUILD_NUMBER;
10497
}
10598

10699
// For local builds, use timestamp
107-
return 't-' + Math.floor((new Date().valueOf() - new Date(2017, 0, 1).valueOf()) / (60*1000));
100+
return Math.floor((new Date().valueOf() - new Date(2017, 0, 1).valueOf()) / (60*1000)) + '-local';
108101
}
109102

110103
function buildYeomanNpmPackage(outputRoot: string) {

templates/package-builder/src/dotnetnew/Microsoft.DotNet.Web.Spa.ProjectTemplates.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Microsoft.DotNet.Web.Spa.ProjectTemplates</id>
5-
<version>1.0.0-preview-{buildnumber}</version>
5+
<version>1.0.{buildnumber}</version>
66
<description>Single Page Application templates for ASP.NET Core</description>
77
<authors>Microsoft</authors>
88
<language>en-US</language>

0 commit comments

Comments
 (0)