-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
…pNetCore.Sdk is used
</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." |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
. SetDebugType = portable
to include portable pdbs required for symbol publishing or stop including symbols by settingIncludeSymbols=false
There was a problem hiding this comment.
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' " /> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 👍
Allows adding .pdb files in the .nupkg for aspnetcore packages that end up on NuGet.org.
cref aspnet/Universe#131
cc @Eilon @JunTaoLuo @ctaggart