Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Fix failure on Unix associate with converting PDBs #1764

Merged
merged 2 commits into from
Oct 26, 2017

Conversation

vancem
Copy link

@vancem vancem commented Oct 26, 2017

Code to convert portable pdbs to windows pdbs was being run on UNIX machines.
This is clearly not needed and was causing failures. Fix it to only run on non Windows
and only for coverage (which is the only thing we know that needs the Windows PDBs).

Basically just make the conversion condition stricter.

See also https://github.com/dotnet/corefx/issues/24807.

Code to convert portable pdbs to windows pdbs was being run on UNIX machines.
This is clearly not needed and was causing failures.   Fix it to only run on non Windows
and only for coverage (which is the only thing we know that needs the Windows  PDBs).

See  https://github.com/dotnet/corefx/issues/24807.
@dnfclas
Copy link

dnfclas commented Oct 26, 2017

@vancem,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@vancem
Copy link
Author

vancem commented Oct 26, 2017

Copy link
Member

@dagood dagood left a comment

Choose a reason for hiding this comment

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

Looks like a reasonable fix, thanks.

<!-- As of 10/2017 OpenCover does not support portable PDBs, but we want the builds to generate
portable PDBs. Thus we generate windows PDBs from portable PDBs here. Can be removed
when OpenCover directly supports Portable PDBs (probably by early 2018) -->

<Target Name="GenerateWindowsPdbsForAssemblyBeingTested" BeforeTargets="GenerateTestExecutionScripts"
Condition="$(CodeCoverageEnabled) == 'true' and '$(TargetOS)'=='Windows_NT'">

This comment was marked as spam.

<!-- As of 10/2017 OpenCover does not support portable PDBs, but we want the builds to generate
portable PDBs. Thus we generate windows PDBs from portable PDBs here. Can be removed
when OpenCover directly supports Portable PDBs (probably by early 2018) -->

<Target Name="GenerateWindowsPdbsForAssemblyBeingTested" BeforeTargets="GenerateTestExecutionScripts"
Condition="$(CodeCoverageEnabled) == 'true' and '$(TargetOS)'=='Windows_NT'">

This comment was marked as spam.

@vancem vancem merged commit 20c4396 into dotnet:master Oct 26, 2017
@vancem
Copy link
Author

vancem commented Oct 27, 2017

@dotnet-bot test this please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants