Updated Build Scripts for bug being fixed.

This commit is contained in:
William Bradley 2018-05-02 23:35:28 +12:00
Родитель 646752cbf3
Коммит 44a373c4d9
3 изменённых файлов: 5 добавлений и 27 удалений

Просмотреть файл

@ -28,16 +28,6 @@
</Choose>
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="2.0.41" PrivateAssets="all" />
<PackageReference Include="Nerdbank.GitVersioning" Version="2.1.23" PrivateAssets="all" />
</ItemGroup>
<!-- https://github.com/NuGet/Home/issues/4337 -->
<ImportGroup Condition="'$(ExcludeRestorePackageImports)' == 'true'">
<Import Project="$(UserProfile)\.nuget\packages\nerdbank.gitversioning\$(NerdbankGitVersioningVersion)\buildCrossTargeting\Nerdbank.GitVersioning.targets"
Condition="Exists('$(UserProfile)\.nuget\packages\nerdbank.gitversioning\$(NerdbankGitVersioningVersion)\buildCrossTargeting\Nerdbank.GitVersioning.targets')" />
</ImportGroup>
<Target Name="FixUpVersion"
BeforeTargets="_GenerateRestoreProjectSpec"
DependsOnTargets="GetBuildVersion"
Condition=" '$(NerdbankGitVersioningTasksPath)' != '' " />
</Project>

Просмотреть файл

@ -18,7 +18,7 @@ var toolsDir = buildDir + "/tools";
var Solution = baseDir + "/ColorCode.sln";
var nupkgDir = buildDir + "/nupkg";
var gitVersioningVersion = "2.0.41";
var gitVersioningVersion = "2.1.23";
var versionClient = toolsDir + "/nerdbank.gitversioning/tools/Get-Version.ps1";
string Version = null;
@ -70,25 +70,13 @@ Task("Build")
MaxCpuCount = 0
}
.SetConfiguration("Release")
.WithTarget("Restore");
// Force a restore again to get proper version numbers https://github.com/NuGet/Home/issues/4337
MSBuild(Solution, buildSettings);
MSBuild(Solution, buildSettings);
EnsureDirectoryExists(nupkgDir);
buildSettings = new MSBuildSettings
{
MaxCpuCount = 0
}
.SetConfiguration("Release")
.WithTarget("Build")
.WithTarget("Restore;Build")
.WithProperty("IncludeSymbols", "true")
.WithProperty("GenerateLibraryLayout", "true")
.WithProperty("PackageOutputPath", nupkgDir)
.WithProperty("GeneratePackageOnBuild", "true");
EnsureDirectoryExists(nupkgDir);
MSBuild(Solution, buildSettings);
});

Просмотреть файл

@ -1,5 +1,5 @@
{
"version": "2.0.3",
"version": "2.0.4",
"publicReleaseRefSpec": [
"^refs/heads/master$", // we release out of master
"^refs/heads/rel/\\d+\\.\\d+\\.\\d+" // we also release branches starting with rel/N.N.N