generated from dotnet/new-repo
-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
I've followed this post a year or more ago to add source link like so:
<PropertyGroup Label="Build">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Label="Source Link">
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Optional: Include PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" Version="1.1.1" />
</ItemGroup>
I also use Cake build to set the ContinuousIntegrationBuild
variable based on !BuildSystem.IsLocalBuild
.
I'm trying to understand if I should switch over to DotNet.ReproducibleBuilds
. There seem to be two differences:
- The package sets
DebugType
toembedded
which I believe would stop generating a snupkg file. I don't currently setDebugType
, so the default must be coming fromSymbolPackageFormat
above. Why was embedded chosen as the default? - Do the source link packages also set
AllowedOutputExtensionsInPackageBuildOutputFolder
? dotnet pack pdb files by default ctaggart/SourceLink#291 makes it pretty unclear.
Metadata
Metadata
Assignees
Labels
No labels