Skip to content

Commit 1cb6634

Browse files
authored
Make SourceLink a development dependency only
From https://github.com/dotnet/sourcelink#githubcom-and-github-enterprise > Source Link package is a development dependency, which means it is only used during build. It is therefore recommended to set PrivateAssets to all on the package reference. This prevents consuming projects of your nuget package from attempting to install Source Link.
1 parent c7e8e26 commit 1cb6634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp/RestSharp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
2525
</ItemGroup>
2626
<ItemGroup>
27-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" />
27+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All" />
2828
</ItemGroup>
2929
<PropertyGroup>
3030
<GenerateDocumentationFile>true</GenerateDocumentationFile>

0 commit comments

Comments
 (0)