Skip to content

Commit 86964d9

Browse files
committed
Updated versioning and pdbs
1 parent 7d9abac commit 86964d9

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

ColorCode.Core/ColorCode.Core.csproj

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,5 @@
99
<Description>The Core Library, containing the Parser, and the classes to create your own formatter.</Description>
1010
<PackageTags>ColorCode Syntax Highlighting SyntaxHighlighting Formatting</PackageTags>
1111
</PropertyGroup>
12-
13-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
14-
<DebugType>full</DebugType>
15-
<DebugSymbols>true</DebugSymbols>
16-
</PropertyGroup>
17-
18-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
19-
<DebugType>full</DebugType>
20-
<DebugSymbols>true</DebugSymbols>
21-
</PropertyGroup>
2212

2313
</Project>

Directory.Build.props

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,25 @@
3030
</PropertyGroup>
3131

3232
<Choose>
33-
<When Condition="('$(IsWinUIProject)' == 'true' or '$(IsUwpProject)' == 'true') and '$(SourceLinkEnabled)' != 'false' and '$(IsTestProject)' != 'true'">
33+
<When Condition="'$(SourceLinkEnabled)' != 'false' and '$(IsTestProject)' != 'true'">
3434
<PropertyGroup>
3535
<GenerateLibraryLayout>true</GenerateLibraryLayout>
3636
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
3737
<PublishRepositoryUrl>true</PublishRepositoryUrl>
3838
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
3939
<EmbedUntrackedSources>true</EmbedUntrackedSources>
40+
<!-- Optional: Include PDB in the built .nupkg -->
41+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
4042
</PropertyGroup>
4143
<ItemGroup>
4244
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
45+
</ItemGroup>
46+
</When>
47+
</Choose>
48+
49+
<Choose>
50+
<When Condition="'$(IsUwpProject)' == 'true' and '$(IsTestProject)' != 'true'">
51+
<ItemGroup>
4352
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.0.9" PrivateAssets="all" />
4453
</ItemGroup>
4554
</When>

build/build.cake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,8 @@ Task("Build")
146146
}
147147
.SetConfiguration("Release")
148148
.WithTarget("Pack")
149-
.WithProperty("IncludeSymbols", "true")
150149
.WithProperty("GenerateLibraryLayout", "true")
151-
.WithProperty("PackageOutputPath", nupkgDir)
152-
.WithProperty("SymbolPackageFormat", "snupkg");
150+
.WithProperty("PackageOutputPath", nupkgDir);
153151

154152
UpdateToolsPath(buildSettings);
155153

version.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"version": "2.0.7",
2+
"version": "2.0.8-build.{height}",
33
"publicReleaseRefSpec": [
44
"^refs/heads/master$", // we release out of master
55
"^refs/heads/rel/\\d+\\.\\d+\\.\\d+" // we also release branches starting with rel/N.N.N
66
],
7+
"nugetPackageVersion":{
8+
"semVer": 2
9+
},
710
"cloudBuild": {
811
"buildNumber": {
9-
"enabled": true
12+
"enabled": false
1013
}
1114
}
1215
}

0 commit comments

Comments
 (0)