Updated versioning and pdbs
This commit is contained in:
Родитель
7d9abac67e
Коммит
86964d94b9
|
@ -9,15 +9,5 @@
|
||||||
<Description>The Core Library, containing the Parser, and the classes to create your own formatter.</Description>
|
<Description>The Core Library, containing the Parser, and the classes to create your own formatter.</Description>
|
||||||
<PackageTags>ColorCode Syntax Highlighting SyntaxHighlighting Formatting</PackageTags>
|
<PackageTags>ColorCode Syntax Highlighting SyntaxHighlighting Formatting</PackageTags>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -30,16 +30,25 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Choose>
|
<Choose>
|
||||||
<When Condition="('$(IsWinUIProject)' == 'true' or '$(IsUwpProject)' == 'true') and '$(SourceLinkEnabled)' != 'false' and '$(IsTestProject)' != 'true'">
|
<When Condition="'$(SourceLinkEnabled)' != 'false' and '$(IsTestProject)' != 'true'">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
||||||
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
|
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
|
||||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||||
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
|
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
|
||||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||||
|
<!-- Optional: Include PDB in the built .nupkg -->
|
||||||
|
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
|
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
|
||||||
|
</ItemGroup>
|
||||||
|
</When>
|
||||||
|
</Choose>
|
||||||
|
|
||||||
|
<Choose>
|
||||||
|
<When Condition="'$(IsUwpProject)' == 'true' and '$(IsTestProject)' != 'true'">
|
||||||
|
<ItemGroup>
|
||||||
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.0.9" PrivateAssets="all" />
|
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.0.9" PrivateAssets="all" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</When>
|
</When>
|
||||||
|
|
|
@ -146,10 +146,8 @@ Task("Build")
|
||||||
}
|
}
|
||||||
.SetConfiguration("Release")
|
.SetConfiguration("Release")
|
||||||
.WithTarget("Pack")
|
.WithTarget("Pack")
|
||||||
.WithProperty("IncludeSymbols", "true")
|
|
||||||
.WithProperty("GenerateLibraryLayout", "true")
|
.WithProperty("GenerateLibraryLayout", "true")
|
||||||
.WithProperty("PackageOutputPath", nupkgDir)
|
.WithProperty("PackageOutputPath", nupkgDir);
|
||||||
.WithProperty("SymbolPackageFormat", "snupkg");
|
|
||||||
|
|
||||||
UpdateToolsPath(buildSettings);
|
UpdateToolsPath(buildSettings);
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,15 @@
|
||||||
{
|
{
|
||||||
"version": "2.0.7",
|
"version": "2.0.8-build.{height}",
|
||||||
"publicReleaseRefSpec": [
|
"publicReleaseRefSpec": [
|
||||||
"^refs/heads/master$", // we release out of master
|
"^refs/heads/master$", // we release out of master
|
||||||
"^refs/heads/rel/\\d+\\.\\d+\\.\\d+" // we also release branches starting with rel/N.N.N
|
"^refs/heads/rel/\\d+\\.\\d+\\.\\d+" // we also release branches starting with rel/N.N.N
|
||||||
],
|
],
|
||||||
|
"nugetPackageVersion":{
|
||||||
|
"semVer": 2
|
||||||
|
},
|
||||||
"cloudBuild": {
|
"cloudBuild": {
|
||||||
"buildNumber": {
|
"buildNumber": {
|
||||||
"enabled": true
|
"enabled": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Загрузка…
Ссылка в новой задаче