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>
|
||||
<PackageTags>ColorCode Syntax Highlighting SyntaxHighlighting Formatting</PackageTags>
|
||||
</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>
|
|
@ -30,16 +30,25 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<Choose>
|
||||
<When Condition="('$(IsWinUIProject)' == 'true' or '$(IsUwpProject)' == 'true') and '$(SourceLinkEnabled)' != 'false' and '$(IsTestProject)' != 'true'">
|
||||
<When Condition="'$(SourceLinkEnabled)' != 'false' and '$(IsTestProject)' != 'true'">
|
||||
<PropertyGroup>
|
||||
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
||||
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<!-- Optional: Include PDB in the built .nupkg -->
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<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" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
|
|
|
@ -146,10 +146,8 @@ Task("Build")
|
|||
}
|
||||
.SetConfiguration("Release")
|
||||
.WithTarget("Pack")
|
||||
.WithProperty("IncludeSymbols", "true")
|
||||
.WithProperty("GenerateLibraryLayout", "true")
|
||||
.WithProperty("PackageOutputPath", nupkgDir)
|
||||
.WithProperty("SymbolPackageFormat", "snupkg");
|
||||
.WithProperty("PackageOutputPath", nupkgDir);
|
||||
|
||||
UpdateToolsPath(buildSettings);
|
||||
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
{
|
||||
"version": "2.0.7",
|
||||
"version": "2.0.8-build.{height}",
|
||||
"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
|
||||
],
|
||||
"nugetPackageVersion":{
|
||||
"semVer": 2
|
||||
},
|
||||
"cloudBuild": {
|
||||
"buildNumber": {
|
||||
"enabled": true
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче