Skip to content

Conversation

@wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Sep 9, 2020

Should resolve #25293

Sometimes, the call to ResolveReferences in the SharedFx project will add .pdb's to ReferenceCopyLocalPaths that are in the output directory of individual projects. This means we add the same .pdb twice (w/ 2 different paths) to the input of Nuget Pack, causing nuget errors. We're still investigating why this behavior exists, but we should also be defensive about duplicate files and strip them out.

@Pilchie can this go in as tell-mode for rc2?

@wtgodbe wtgodbe requested a review from a team September 9, 2020 16:49
@ghost ghost added the feature-platform Deprecated: Cross-cutting issues related to ASP.NET Core as a platform label Sep 9, 2020
@wtgodbe
Copy link
Member Author

wtgodbe commented Sep 9, 2020

@Pilchie
Copy link
Member

Pilchie commented Sep 9, 2020

Does the Distinct keep the "right" version of the PDB? Does it matter, are they identical in the two locations?

@wtgodbe
Copy link
Member Author

wtgodbe commented Sep 9, 2020

Does the Distinct keep the "right" version of the PDB? Does it matter, are they identical in the two locations?

I think distinct just picks whichever one is "first" in the list - but, the .pdb's are the same in both locations (the sharedFx project copies them over from their original locations)

@dougbu
Copy link
Contributor

dougbu commented Sep 9, 2020

Wondering about the tradeoffs here. Is this a better option than disabling the RAR cache❔

@wtgodbe
Copy link
Member Author

wtgodbe commented Sep 9, 2020

Wondering about the tradeoffs here. Is this a better option than disabling the RAR cache❔

I'll follow up with msbuild folks about this. Also have some test builds going for that scenario:

https://dev.azure.com/dnceng/internal/_build/results?buildId=807440&view=results
https://dev.azure.com/dnceng/internal/_build/results?buildId=807444&view=results

Copy link
Member

@halter73 halter73 left a comment

Choose a reason for hiding this comment

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

Awesome! This does feel like it shouldn't be necessary, but I'll take anything that deflakes the build at this point.

@Pilchie
Copy link
Member

Pilchie commented Sep 9, 2020

I'm fine with either this or the disable RAR cache fix through tell mode once you settle with MSBuild folks on what is the better approach.

@wtgodbe
Copy link
Member Author

wtgodbe commented Sep 9, 2020

One of the test builds for disabling the RAR cache saw the error recur, while the other didn't - all three builds of this branch have succeeded. I'm inclined to go ahead with this change, but will wait to hear back from the msbuild folks before merging.

@wtgodbe wtgodbe merged commit 76fbd1a into release/5.0-rc2 Sep 9, 2020
@wtgodbe wtgodbe deleted the wtgodbe/FixPdb branch September 9, 2020 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-platform Deprecated: Cross-cutting issues related to ASP.NET Core as a platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants