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

Remove incorrect DebugType setting #1301

Merged
merged 1 commit into from
Nov 20, 2017
Merged

Remove incorrect DebugType setting #1301

merged 1 commit into from
Nov 20, 2017

Conversation

tmat
Copy link
Member

@tmat tmat commented Nov 17, 2017

Description

Remove incorrect DebugType setting.

Currently the targets file sets DebugType after it has been used by the SDK to determine whether symbols need to be copied to the output directory. If the project sets DebugType to embedded the SDK determines that no PDBs need to be copied but then the test SDK overwrites DebugType value which makes the compiler to produce Windows PDB. This PDB is not copied to the output directory. XUnit will not find it there when displaying stack traces so the stack traces will miss line and file information.

Related issue

Fixes #373

This can be removed once TPv2 is default for full CLR. Related issue https://github.com/Microsoft/vstest/issues/373.
-->
<PropertyGroup>
<DebugType Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">Full</DebugType>
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing this before fixing #800 breaks code coverage for .NET Full framework. We can change the condition to add Full debug type if user not specified.

Copy link
Member Author

@tmat tmat Nov 17, 2017

Choose a reason for hiding this comment

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

@smadala This is not the right place to change DebugType value. As I pointed out by the time this is evaluated its original value has already been used to calculate other variables.

Copy link
Contributor

Choose a reason for hiding this comment

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

Starting next sprint, we will begin the work to add code coverage support for .NET Core in the presence of portable and embedded PDBs.

@tmat, in the meantime we will merge in this PR.

@smadala smadala merged commit 4c3b7f0 into master Nov 20, 2017
@smadala smadala deleted the FixDebugType branch November 20, 2017 10:38
@tmat
Copy link
Member Author

tmat commented Nov 20, 2017

@smadala Thanks!

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.

4 participants