Skip to content

add extension point for placing symbols to custom places. - #4053

Merged
nkolev92 merged 8 commits into
NuGet:devfrom
Anipik:symbols
Jun 4, 2021
Merged

nkolev92 merged 8 commits into
NuGet:devfrom
Anipik:symbols

Conversation

@Anipik

@Anipik Anipik commented May 14, 2021 •

Copy link
Copy Markdown
Contributor

Bug

No good way to place symbols outside of the lib folder

Fixes: NuGet/Home#10913

Related to : NuGet/Home#10860

Currently there was no way to add extra symbols files in the innerbuilds, this change provide that hook. It still wont address the problem of targetpath being an absolute path. I added the tests which should help in understanding the workflow for innerbuilds.

Description

  • added a variable TargetsForTfmSpecificDebugSymbolsInPackage which could be set to run the targets to populate _TargetPathsToSymbolsWithTfm
  • Moved IncludeBuildOutput added here add condition for excluding a specific tfm build output from package #3810 in itemgroup in order to allow the user to put the buildOutput\symbols at some other place other than lib. the same pattern is used from other targets as well like _AddPriFileToPackBuildOutput and _GetFrameworksWithSuppressedDependencies

PR Checklist

cc @ViktorHofer @safern @ericstj @nkolev92

@ericstj

ericstj commented May 14, 2021

Copy link
Copy Markdown
Contributor

@Anipik can you explain what the user can do to accomplish the following with this PR?

  1. From the outer build include a file at runtimes/rid/native/foo.pdb? What item and metadata should I set? Will the PDB be absent from the main package and present in the symbols package?
  2. From inner build, define that my primary output should be placed at dotnet/analyzers/cs/myAnalyzer.dll and dotnet/analyzers/cs/myAnalyzer.pdb.

Thanks!

@zivkan zivkan added the Community PRs created by someone not in the NuGet team label May 17, 2021

@nkolev92 nkolev92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The change seems reasonable.

Can you give an example as Eric suggested.

Please make sure you add a test.

@ericstj

ericstj commented May 19, 2021

Copy link
Copy Markdown
Contributor

It's possible this fix doesn't address everything in my suggestion, but if that's the case be sure not to close that issue. It's still important to have a clear statement of what this fixes and how to use it.

@Anipik

Anipik commented May 22, 2021

Copy link
Copy Markdown
Contributor Author

@ericstj @nkolev92 i added the tests and updated the description as well. let me know if u still have any questions.

@erdembayar @nkolev92 feel free to trigger the ci.

@erdembayar

Copy link
Copy Markdown
Contributor

@ericstj @nkolev92 i added the tests and updated the description as well. let me know if u still have any questions.

@erdembayar @nkolev92 feel free to trigger the ci.

@Anipik
Ok. Approved for CI build. 🤞

@nkolev92 nkolev92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just some minor feedback. On the right track!

The PR template originally had a field for a docs issue. Can you please add that back and create an issue?

@Anipik

Anipik commented May 25, 2021

Copy link
Copy Markdown
Contributor Author

@nkolev92 @erdembayar can you trigger the ci here ?

@erdembayar

Copy link
Copy Markdown
Contributor

@nkolev92 @erdembayar can you trigger the ci here ?

Ok. Done.

@Anipik

Anipik commented May 25, 2021

Copy link
Copy Markdown
Contributor Author

Thanks :)

@ericstj ericstj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM modulo one comment.

@Anipik

Anipik commented Jun 1, 2021

Copy link
Copy Markdown
Contributor Author

@nkolev92 @erdembayar can we review and merge this one ?

@nkolev92 nkolev92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM
Thanks for bearing with us adding all the tests!
One small comment left.

Great work!

@nkolev92

nkolev92 commented Jun 3, 2021

Copy link
Copy Markdown
Member

@ericstj pointed out to me that NuGet/Home#10860 contains a lot of detail, and might've been intended to be used as a follow up.

We try to keep a 1-1 relationship between PR + issue. I created an issue that this PR will now close: NuGet/Home#10913

@nkolev92
nkolev92 requested a review from erdembayar June 3, 2021 17:43
@nkolev92 nkolev92 self-assigned this Jun 3, 2021
@ericstj

ericstj commented Jun 3, 2021

Copy link
Copy Markdown
Contributor

Can this be merged now?

@Anipik

Anipik commented Jun 4, 2021

Copy link
Copy Markdown
Contributor Author

@nkolev92 @erdembayar can we merge this one :)

@nkolev92
nkolev92 merged commit e0e66a4 into NuGet:dev Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for TfmSpecificDebugSymbolsFile to provide symbols in the inner build

6 participants