![]() |
VOOZH | about |
dotnet add package XploRe.SourceLink.OpenSource --version 1.0.1
NuGet\Install-Package XploRe.SourceLink.OpenSource -Version 1.0.1
<PackageReference Include="XploRe.SourceLink.OpenSource" Version="1.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageVersion Include="XploRe.SourceLink.OpenSource" Version="1.0.1" />Directory.Packages.props
<PackageReference Include="XploRe.SourceLink.OpenSource"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>Project file
paket add XploRe.SourceLink.OpenSource --version 1.0.1
#r "nuget: XploRe.SourceLink.OpenSource, 1.0.1"
#:package XploRe.SourceLink.OpenSource@1.0.1
#addin nuget:?package=XploRe.SourceLink.OpenSource&version=1.0.1Install as a Cake Addin
#tool nuget:?package=XploRe.SourceLink.OpenSource&version=1.0.1Install as a Cake Tool
Development meta-package that provides a simple way to set up Source Link and reproducible builds for open source projects.
To configure Source Link and reproducible builds, add the following package reference to the project file:
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="XploRe.SourceLink.OpenSource" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>
Setting PrivateAssets to All ensures that the package reference is used for building only and will not appear as a
dependency in the .nuspec file of the project.
If a tool is used to add the dependency, the PrivateAssets property should be set automatically.
Configure additional Source Link properties as needed (e.g. when a private host is used).
Referencing the package will automatically add development dependencies for all available Source Link implementations; a matching one for the currently used VCS is chosen automatically.
Additionally, several build properties are set, including:
DebugType is set to portable. This is recommended for packages that are published on nuget.org and configures the
generation of portable PDBs for distribution via symbol packages.
See documentation on how to create a symbol package.Deterministic is set to true. This ensures that the build is reproducible.ContinuousIntegrationBuild is set to true if the build is triggered by a CI system such that source paths are
normalised for matching sources in the remote repository.PublishRepositoryUrl is set to true. This automatically adds the repository url to the generated .nuspec file.EmbedUntrackedSources is set to true. Untracked sources are source files that are not part of the repository but
were generated during the build (e.g. AssemblyInfo.cs).Each property is only set if not already set. To overwrite the value, set the property in the project file.
For the full documentation please visit the repository at:
https://gitlab.com/xplo-re/dotnet/sourcelink.opensource
Released under the Apache License, Version 2.0.
Copyright © xplo.re IT Services, Michael Maier.
All rights reserved.
Learn more about Target Frameworks and .NET Standard.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 268 | 4/14/2022 |