Skip to content

Commit

Permalink
feat: Embed symbols and enable continuous integration builds (determi…
Browse files Browse the repository at this point in the history
…nistic source paths) (#1129)

Co-authored-by: tom-englert <[email protected]>
  • Loading branch information
tom-englert and tom-englert authored Feb 26, 2024
1 parent 5c677d9 commit c0932f2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
3 changes: 3 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)docs/banner.png" Visible="false" Pack="true" PackagePath="docs/" />
<None Include="$(MSBuildThisFileDirectory)docs/logo.png" Visible="false" Pack="true" PackagePath="docs/" />
Expand Down
7 changes: 2 additions & 5 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Task("Build")
Verbosity = param.Verbosity,
NoRestore = true,
ArgumentCustomization = args => args
.Append($"/p:ContinuousIntegrationBuild=true")
});
});

Expand Down Expand Up @@ -130,12 +131,8 @@ Task("Create-NuGet-Packages")
Verbosity = param.Verbosity,
NoRestore = true,
NoBuild = true,
IncludeSymbols = true,
SymbolPackageFormat = "snupkg",
OutputDirectory = param.Paths.Directories.NuGetDirectoryPath,
ArgumentCustomization = args => args
.Append("/p:ContinuousIntegrationBuild=true")
.Append("/p:EmbedUntrackedSources=true")
.Append($"/p:Version={param.Version}")
});
});
Expand All @@ -160,7 +157,7 @@ Task("Publish-NuGet-Packages")
.WithCriteria(() => param.ShouldPublish)
.Does(() =>
{
foreach(var package in GetFiles($"{param.Paths.Directories.NuGetDirectoryPath}/*.(nupkg|snupkgs)"))
foreach (var package in GetFiles($"{param.Paths.Directories.NuGetDirectoryPath}/*.nupkg"))
{
DotNetNuGetPush(package.FullPath, new DotNetNuGetPushSettings
{
Expand Down
20 changes: 12 additions & 8 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<VSTestLogger>trx%3BLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
</PropertyGroup>
</Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<VSTestLogger>trx%3BLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
</PropertyGroup>
<PropertyGroup>
<EnableSourceLink>false</EnableSourceLink>
<Deterministic>false</Deterministic>
</PropertyGroup>
</Project>

0 comments on commit c0932f2

Please sign in to comment.