Skip to content

Commit d36cfa2

Browse files
authored
Add SourceLink support (#134)
* Add SourceLink support * Fix appveyor.yml
1 parent ff9ad9c commit d36cfa2

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

Source/EasyNetQ.Management.Client/EasyNetQ.Management.Client.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
<RepositoryUrl>https://github.com/EasyNetQ/EasyNetQ.Management.Client</RepositoryUrl>
2525
<RepositoryType>git</RepositoryType>
2626
<PackageTags>RabbitMQ Management.API .NET C# netstandard</PackageTags>
27+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
28+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
29+
<IncludeSymbols>true</IncludeSymbols>
30+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
31+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
2732
</PropertyGroup>
2833

2934
<PropertyGroup Condition="'$(TargetFramework)'=='net461'">
@@ -41,6 +46,7 @@
4146
<PackageReference Include="System.Security.SecureString" Version="4.3.0" />
4247
</ItemGroup>
4348
<ItemGroup>
49+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" />
4450
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
4551
</ItemGroup>
4652
</Project>

Tools/build/build.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ Task("NuGetPush")
175175
.IsDependentOn("Pack")
176176
.Does(() =>
177177
{
178-
var packageSearchPattern = System.IO.Path.Combine(artifactsDir, "*.nupkg");
179178
var nuGetPushSettings = new DotNetCoreNuGetPushSettings { Source = "https://www.nuget.org/api/v2/package", ApiKey = nuGetApiKey };
180-
DotNetCoreNuGetPush(packageSearchPattern, nuGetPushSettings);
179+
DotNetCoreNuGetPush(System.IO.Path.Combine(artifactsDir, "*.nupkg"), nuGetPushSettings);
180+
DotNetCoreNuGetPush(System.IO.Path.Combine(artifactsDir, "*.snupkg"), nuGetPushSettings);
181181
});
182182

183183
RunTarget(target);

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ build_script:
3434
test: off
3535
artifacts:
3636
- path: Tools\build\artifacts\*.nupkg
37+
- path: Tools\build\artifacts\*.snupkg
3738
deploy:
3839
provider: NuGet
3940
api_key:

0 commit comments

Comments
 (0)