提交 3cb0b52d 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Merge pull request #18048 from dotnet/merges/dev15.0.x-to-dev15.1.x-20170322-070001

Merge dev15.0.x to dev15.1.x
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<MicrosoftBuildTasksCoreVersion>15.1.0-preview-000458-02</MicrosoftBuildTasksCoreVersion> <MicrosoftBuildTasksCoreVersion>15.1.0-preview-000458-02</MicrosoftBuildTasksCoreVersion>
<MicrosoftBuildTasksCore14Version>14.3.0</MicrosoftBuildTasksCore14Version> <MicrosoftBuildTasksCore14Version>14.3.0</MicrosoftBuildTasksCore14Version>
<MicrosoftCodeAnalysisAnalyzersVersion>1.1.0</MicrosoftCodeAnalysisAnalyzersVersion> <MicrosoftCodeAnalysisAnalyzersVersion>1.1.0</MicrosoftCodeAnalysisAnalyzersVersion>
<MicrosoftCodeAnalysisElfieVersion>0.10.6-rc2</MicrosoftCodeAnalysisElfieVersion> <MicrosoftCodeAnalysisElfieVersion>0.10.6</MicrosoftCodeAnalysisElfieVersion>
<MicrosoftCompositionVersion>1.0.27</MicrosoftCompositionVersion> <MicrosoftCompositionVersion>1.0.27</MicrosoftCompositionVersion>
<MicrosoftCSharpVersion>4.3.0</MicrosoftCSharpVersion> <MicrosoftCSharpVersion>4.3.0</MicrosoftCSharpVersion>
<MicrosoftDiagnosticsRuntimeVersion>0.8.31-beta</MicrosoftDiagnosticsRuntimeVersion> <MicrosoftDiagnosticsRuntimeVersion>0.8.31-beta</MicrosoftDiagnosticsRuntimeVersion>
......
...@@ -129,6 +129,7 @@ var PreReleaseOnlyPackages = new HashSet<string> ...@@ -129,6 +129,7 @@ var PreReleaseOnlyPackages = new HashSet<string>
"Microsoft.CodeAnalysis.Remote.ServiceHub", "Microsoft.CodeAnalysis.Remote.ServiceHub",
"Microsoft.CodeAnalysis.Remote.Workspaces", "Microsoft.CodeAnalysis.Remote.Workspaces",
"Microsoft.CodeAnalysis.Test.Resources.Proprietary", "Microsoft.CodeAnalysis.Test.Resources.Proprietary",
"Microsoft.VisualStudio.IntegrationTest.Utilities",
"Microsoft.VisualStudio.LanguageServices.Next", "Microsoft.VisualStudio.LanguageServices.Next",
"Microsoft.VisualStudio.LanguageServices.Razor.RemoteClient", "Microsoft.VisualStudio.LanguageServices.Razor.RemoteClient",
}; };
...@@ -171,6 +172,26 @@ void ReportError(string message) ...@@ -171,6 +172,26 @@ void ReportError(string message)
Console.ForegroundColor = color; Console.ForegroundColor = color;
} }
string GetPackageVersion(string packageName)
{
// HACK: since Microsoft.Net.Compilers 2.0.0 was uploaded by accident and later deleted, we must bump the minor.
// We will do this to both the regular Microsoft.Net.Compilers package and also the netcore package to keep them
// in sync.
if (BuildVersion.StartsWith("2.0.") && packageName.StartsWith("Microsoft.Net.Compilers", StringComparison.OrdinalIgnoreCase))
{
string[] buildVersionParts = BuildVersion.Split('-');
string[] buildVersionBaseParts = buildVersionParts[0].Split('.');
buildVersionBaseParts[buildVersionBaseParts.Length - 1] =
(int.Parse(buildVersionBaseParts[buildVersionBaseParts.Length - 1]) + 1).ToString();
buildVersionParts[0] = string.Join(".", buildVersionBaseParts);
return string.Join("-", buildVersionParts);
}
return BuildVersion;
}
int PackFiles(string[] nuspecFiles, string licenseUrl) int PackFiles(string[] nuspecFiles, string licenseUrl)
{ {
var commonProperties = new Dictionary<string, string>() var commonProperties = new Dictionary<string, string>()
...@@ -212,8 +233,10 @@ int PackFiles(string[] nuspecFiles, string licenseUrl) ...@@ -212,8 +233,10 @@ int PackFiles(string[] nuspecFiles, string licenseUrl)
if (!IsCoreBuild) if (!IsCoreBuild)
{ {
string packageArgs = commonArgs.Replace($"-prop version=\"{BuildVersion}\"", $"-prop version=\"{GetPackageVersion(Path.GetFileNameWithoutExtension(file))}\"");
p.StartInfo.FileName = Path.GetFullPath(Path.Combine(SolutionRoot, "nuget.exe")); p.StartInfo.FileName = Path.GetFullPath(Path.Combine(SolutionRoot, "nuget.exe"));
p.StartInfo.Arguments = $@"pack {file} {commonArgs}"; p.StartInfo.Arguments = $@"pack {file} {packageArgs}";
} }
else else
{ {
...@@ -266,7 +289,7 @@ XElement MakePackageElement(string packageName, string version) ...@@ -266,7 +289,7 @@ XElement MakePackageElement(string packageName, string version)
IEnumerable<XElement> MakeRoslynPackageElements(string[] roslynPackageNames) IEnumerable<XElement> MakeRoslynPackageElements(string[] roslynPackageNames)
{ {
return roslynPackageNames.Select(packageName => MakePackageElement(packageName, BuildVersion)); return roslynPackageNames.Select(packageName => MakePackageElement(packageName, GetPackageVersion(packageName)));
} }
void GeneratePublishingConfig(string fileName, IEnumerable<XElement> packages) void GeneratePublishingConfig(string fileName, IEnumerable<XElement> packages)
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
</Target> </Target>
<Target Name="Clean"> <Target Name="Clean">
<MSBuild Projects="@(Project)" Targets="Clean" BuildInParallel="false" /> <RemoveDir Directories="$(OutDir)NuGet" />
</Target> </Target>
<Target Name="Rebuild">
<MSBuild Projects="@(Project)" Targets="Rebuild" BuildInParallel="false" /> <Target Name="Rebuild" DependsOnTargets="Clean;Build">
</Target> </Target>
</Project> </Project>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"dependencies": { "dependencies": {
"Microsoft.DiaSymReader": "1.1.0", "Microsoft.DiaSymReader": "1.1.0",
"Microsoft.DiaSymReader.Native": "1.5.0-beta1", "Microsoft.DiaSymReader.Native": "1.5.0-beta1",
"Microsoft.CodeAnalysis.Elfie": "0.10.6-rc2", "Microsoft.CodeAnalysis.Elfie": "0.10.6",
"System.Collections.Immutable": "1.3.1", "System.Collections.Immutable": "1.3.1",
"System.Reflection.Metadata": "1.4.2", "System.Reflection.Metadata": "1.4.2",
"ManagedEsent": "1.9.4", "ManagedEsent": "1.9.4",
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
"EnvDTE": "8.0.0", "EnvDTE": "8.0.0",
"EnvDTE80": "8.0.0", "EnvDTE80": "8.0.0",
"ManagedEsent": "1.9.4", "ManagedEsent": "1.9.4",
"Microsoft.CodeAnalysis.Elfie": "0.10.6-rc2",
"Microsoft.VisualStudio.Telemetry": "15.0.722-masterBFDFE2B0", "Microsoft.VisualStudio.Telemetry": "15.0.722-masterBFDFE2B0",
"Microsoft.VisualStudio.RemoteControl": "14.0.249-master2E2DC10C", "Microsoft.VisualStudio.RemoteControl": "14.0.249-master2E2DC10C",
"Microsoft.VisualStudio.OLE.Interop": "7.10.6070", "Microsoft.VisualStudio.OLE.Interop": "7.10.6070",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"ManagedEsent": "1.9.4", "ManagedEsent": "1.9.4",
"Microsoft.Build": "15.1.0-preview-000458-02", "Microsoft.Build": "15.1.0-preview-000458-02",
"Microsoft.Build.Tasks.Core": "15.1.0-preview-000458-02", "Microsoft.Build.Tasks.Core": "15.1.0-preview-000458-02",
"Microsoft.CodeAnalysis.Elfie": "0.10.6-rc2", "Microsoft.CodeAnalysis.Elfie": "0.10.6",
"Microsoft.VisualStudio.RemoteControl": "14.0.249-master2E2DC10C" "Microsoft.VisualStudio.RemoteControl": "14.0.249-master2E2DC10C"
}, },
"frameworks": { "frameworks": {
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
"xunit": "2.2.0-beta4-build3444", "xunit": "2.2.0-beta4-build3444",
"xunit.runner.console": "2.2.0-beta4-build3444", "xunit.runner.console": "2.2.0-beta4-build3444",
"xunit.runner.visualstudio": "2.2.0-beta4-build1194", "xunit.runner.visualstudio": "2.2.0-beta4-build1194",
"Microsoft.CodeAnalysis.Elfie": "0.10.6-rc2",
"Microsoft.Tpl.Dataflow": "4.5.24", "Microsoft.Tpl.Dataflow": "4.5.24",
"Microsoft.Build.Runtime": "15.1.0-preview-000458-02", "Microsoft.Build.Runtime": "15.1.0-preview-000458-02",
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册