提交 7868953d 编写于 作者: J Jared Parsons

Use an empty message for developer builds

上级 3148f556
......@@ -7,6 +7,7 @@ using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml.Linq;
string usage = @"usage: BuildNuGets.csx <binaries-dir> <build-version> <output-directory> <git sha>";
......@@ -36,7 +37,15 @@ var OutDir = Path.GetFullPath(Args[2]).TrimEnd('\\');
// In developer builds the commit sha is <developer build>. Need to make sure
// we escape the values so that
var CommitSha = Args[3].Replace("<", "").Replace(">", "");
var CommitUrl = $"https://github.com/dotnet/roslyn/commit/{CommitSha}";
var CommitIsDeveloperBuild = CommitSha == "<developer build>";
if (!CommitIsDeveloperBuild && !Regex.IsMatch(CommitSha, "[A-Fa-f0-9]+"))
{
Console.WriteLine("Invalid Git sha value: expected <developer build> or a valid sha");
Environment.Exit(1);
}
var CommitPathMessage = CommitIsDeveloperBuild
? $"This package was built from the source at https://github.com/dotnet/roslyn/commit/{CommitSha}"
: "This an unofficial build from a developers machine";
var LicenseUrlRedist = @"http://go.microsoft.com/fwlink/?LinkId=529443";
var LicenseUrlNonRedist = @"http://go.microsoft.com/fwlink/?LinkId=529444";
......@@ -211,7 +220,7 @@ int PackFiles(string[] nuspecFiles, string licenseUrl)
{ "tags", Tags },
{ "emptyDirPath", emptyDir },
{ "additionalFilesPath", NuGetAdditionalFilesPath },
{ "commitUrl", CommitUrl }
{ "commitPathMessage", CommitPathMessage }
};
foreach (var dependencyVersion in dependencyVersions)
......
......@@ -7,7 +7,7 @@
Contains the build task and targets used by MSBuild to run the C# and VB compilers.
Supports using VBCSCompiler on Windows.
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<group targetFramework="netstandard1.3">
......
......@@ -5,7 +5,7 @@
<summary>
.NET Compiler Platform ("Roslyn") code style analyzers for C#.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
</dependencies>
......
......@@ -5,7 +5,7 @@
<summary>
.NET Compiler Platform ("Roslyn") support for creating C# editing experiences.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Features" version="$version$" />
<dependency id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="$version$" />
......
......@@ -3,7 +3,7 @@
<metadata>
<id>Microsoft.CodeAnalysis.CSharp.Scripting</id>
<summary>Microsoft .NET Compiler Platform ("Roslyn") CSharp scripting package.</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<language>en-US</language>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<version>$version$</version>
......
......@@ -5,7 +5,7 @@
<summary>
.NET Compiler Platform ("Roslyn") support for analyzing C# projects and solutions.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.CSharp" version="[$version$]" />
<dependency id="Microsoft.CodeAnalysis.Workspaces.Common" version="[$version$]" />
......
......@@ -7,7 +7,7 @@
More details at https://aka.ms/roslyn-packages
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Common" version="[$version$]" />
</dependencies>
......
......@@ -6,7 +6,7 @@
<description>
A shared package used by the Microsoft .NET Compiler Platform ("Roslyn"). Do not install this package manually, it will be added as a prerequisite by other packages that require it.
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<group targetFramework="netstandard1.3">
......
......@@ -8,7 +8,7 @@
More details at https://aka.ms/roslyn-packages
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.CSharp" version="[$version$]" />
......
......@@ -9,7 +9,7 @@
Supported Platforms:
- .NET Framework 4.6
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Workspaces.Common" version="[$version$]" />
......
......@@ -9,7 +9,7 @@
Supported Platforms:
- .NET Framework 4.6
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Features" version="[$version$]" />
......
......@@ -5,7 +5,7 @@
<summary>
.NET Compiler Platform ("Roslyn") support for creating editing experiences.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Workspaces.Common" version="$version$" />
</dependencies>
......
......@@ -11,7 +11,7 @@
Supported Platforms:
- .NET Framework 4.6
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Remote.Workspaces" version="[$version$]" />
......
......@@ -11,7 +11,7 @@
Supported Platforms:
- .NET Framework 4.6
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Remote.Workspaces" version="[$version$]" />
......
......@@ -11,7 +11,7 @@
Supported Platforms:
- .NET Framework 4.6
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Common" version="[$version$]" />
......
......@@ -6,7 +6,7 @@
<description>
Microsoft .NET Compiler Platform ("Roslyn") shared scripting package. Do not install this package manually, it will be added as a prerequisite by other packages that require it.
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<language>en-US</language>
......
......@@ -6,7 +6,7 @@
<description>
Microsoft .NET Compiler Platform ("Roslyn") CSharp and VB scripting package.
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.CSharp.Scripting" version="[$version$]" />
......
......@@ -5,7 +5,7 @@
<summary>
.NET Compiler Platform ("Roslyn") code style analyzers for Visual Basic.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
</dependencies>
......
......@@ -5,7 +5,7 @@
<summary>
.NET Compiler Platform ("Roslyn") support for creating Visual Basic editing experiences.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Features" version="$version$" />
<dependency id="Microsoft.CodeAnalysis.VisualBasic.Workspaces" version="$version$" />
......
......@@ -6,7 +6,7 @@
<description>
Microsoft .NET Compiler Platform ("Roslyn") Visual Basic scripting package.
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<language>en-US</language>
......
......@@ -5,7 +5,7 @@
<summary>
.NET Compiler Platform ("Roslyn") support for analyzing Visual Basic projects and solutions.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.VisualBasic" version="[$version$]" />
<dependency id="Microsoft.CodeAnalysis.Workspaces.Common" version="[$version$]" />
......
......@@ -7,7 +7,7 @@
More details at https://aka.ms/roslyn-packages
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Common" version="$version$" />
</dependencies>
......
......@@ -8,7 +8,7 @@
<description>
A shared package used by the .NET Compiler Platform ("Roslyn") including support for analyzing projects and solutions. Do not install this package manually, it will be added as a prerequisite by other packages that require it.
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<group targetFramework="netstandard1.3">
......
......@@ -13,7 +13,7 @@
- "Microsoft.CodeAnalysis.CSharp" (only the C# compiler)
- "Microsoft.CodeAnalysis.VisualBasic (only the VB compiler)
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="[$version$]" />
......
......@@ -5,7 +5,7 @@
<summary>
CoreCLR-compatible versions of the C# and VB compilers for use in MSBuild.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<language>en-US</language>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<version>$version$</version>
......
......@@ -8,7 +8,7 @@
Supported Platforms:
- .NET Core (NETCoreApp1.0)
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<language>en-US</language>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<version>$version$</version>
......
......@@ -5,7 +5,7 @@
<summary>
CoreCLR-compatible versions of the C# and VB compilers.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<language>en-US</language>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<version>$version$</version>
......
......@@ -7,7 +7,7 @@
This package can be used to compile code targeting any platform, but can only be run using the desktop .NET 4.6+ Full Framework.
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<language>en-US</language>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<version>$version$</version>
......
......@@ -3,7 +3,7 @@
<metadata>
<id>Microsoft.VisualStudio.IntegrationTest.Utilities</id>
<summary>Utility methods used to run Visual Studio integration tests.</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<language>en-US</language>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<version>$version$</version>
......
......@@ -8,7 +8,7 @@
Supported Platforms:
- .NET Framework 4.6
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Remote.ServiceHub" version="[$version$]" />
<dependency id="Microsoft.CodeAnalysis.Remote.Workspaces" version="[$version$]" />
......
......@@ -9,7 +9,7 @@
Supported Platforms:
- .NET Framework 4.6
This package was built from the source at $commitUrl$
$commitPathMessage$
</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis.Workspaces.Common" version="[$version$]" />
......
......@@ -8,7 +8,7 @@
Supported Platforms:
- .NET Framework 4.6
</summary>
<description>This package was built from the source at $commitUrl$</description>
<description>$commitPathMessage$</description>
<dependencies>
<dependency id="Microsoft.CodeAnalysis" version="[$version$]" />
</dependencies>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册