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

Include portable .pdb files in regular nupkgs when Internal.AspNetCore.Sdk is used #568

Merged
merged 3 commits into from
Feb 2, 2018

Conversation

natemcmaster
Copy link
Contributor

@natemcmaster natemcmaster commented Feb 1, 2018

Allows adding .pdb files in the .nupkg for aspnetcore packages that end up on NuGet.org.

cref aspnet/Universe#131

cc @Eilon @JunTaoLuo @ctaggart

</PropertyGroup>

<Target Name="_EnsurePdbsInNupkgArePortable" BeforeTargets="GenerateNuspec" Condition=" '$(IsPackable)' != 'false' ">
<Error Text="Symbols included in a nupkg package should be portable. Set DebugType=portable or IncludeSymbols=false."
Copy link
Contributor

Choose a reason for hiding this comment

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

Set DebugType=portable orand IncludeSymbols=false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe I should clarify. What I meant here was Fix by setting DebugType=portable or disable inclusion of symbols by setting IncludeSymbols=false

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe split this in to two?

Symbols were set to be included but the project was built using DebugType = full. Set DebugType = portable to include portable pdbs required for symbol publishing or stop including symbols by setting IncludeSymbols=false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's much better. I'll update the error.


<Target Name="_EnsurePdbsInNupkgArePortable" BeforeTargets="GenerateNuspec" Condition=" '$(IsPackable)' != 'false' ">
<Error Text="Symbols included in a nupkg package should be portable. Set DebugType=portable or IncludeSymbols=false."
Condition=" '$(DebugType)' != 'portable' AND '$(IncludeSymbols)' == 'true' " />
Copy link
Contributor

Choose a reason for hiding this comment

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

Btw, the last I looked, symbols for Razor's net46 binaries are full. Can you verify this works for the repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why are they full? Don't we need portable for these to work for x-plat?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not entirely sure. @NTaylorMullen might know more.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it's due to this, right? aspnet/Razor#1548 If we need full for VS, let's still produce portable by default. We can convert portable symbols to full in our VS publishing steps. I believe @muratg knows how to do that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, yeah. Completely forgot I made that change 👍

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.

3 participants