Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use official extension point to add PDBs #4857

Merged
merged 1 commit into from
Jul 18, 2017
Merged

Use official extension point to add PDBs #4857

merged 1 commit into from
Jul 18, 2017

Conversation

bording
Copy link
Member

@bording bording commented Jul 18, 2017

This uses the official TFM-specific content extension point introduced in NuGet/NuGet.Client#1255 to add the PDBs to the packages.

CC: @SimonCropp

@SimonCropp
Copy link
Contributor

@bording awesome. i will apply that to my other projects

</PropertyGroup>

<!-- Target is needed until we can enable GeneratePackageOnBuild again -->
<Target Name="IncludePDBsInPackage" BeforeTargets="_GetPackageFiles" Condition="'$(IncludeBuildOutput)' != 'false'">
<Target Name="IncludePDBsInPackage" Condition="'$(IncludeBuildOutput)' != 'false'">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is IncludeBuildOutput required? dont we always want pdbs included?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This applies to all projects, including the projects that create source packages: https://github.com/Particular/NServiceBus/blob/develop/src/NServiceBus.AcceptanceTests/NServiceBus.AcceptanceTests.csproj#L31

Without that, it would put the PDBs in there as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose I could have put the condition on the TargetsForTfmSpecificContentInPackage property instead, but it looked better on the target.

@timbussmann timbussmann merged commit 161e12c into develop Jul 18, 2017
@timbussmann timbussmann deleted the packaging branch July 18, 2017 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants