Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

SourceLink.Copy.PdbFiles #315

Merged
merged 4 commits into from
Feb 2, 2018
Merged

SourceLink.Copy.PdbFiles #315

merged 4 commits into from
Feb 2, 2018

Conversation

ctaggart
Copy link
Owner

@ctaggart ctaggart commented Feb 2, 2018

SourceLink.Copy.PdbFiles just packages up the workaround @jnm2 came up with to address #313.

I'm guessing we may need to add some conditions so that this only applied to netfx.

@jnm2
Copy link
Contributor

jnm2 commented Feb 2, 2018

Are we sure that netfx is the only platform that fails to copy PDBs? What about UWP etc?

@ctaggart
Copy link
Owner Author

ctaggart commented Feb 2, 2018

@jnm2 No. Looking at the target frameworks, I think it is just netcoreapp we should not copy pdb files for. Any idea how to actually create this correctly?

<IsNetCoreApp Condition="'$(TargetFramework).StartsWith(%27netcoreapp%27)'=='True'">true</IsNetCoreApp>

@jnm2
Copy link
Contributor

jnm2 commented Feb 2, 2018

@ctaggart This is what I've done for .NET Framework. There's probably a TargetFrameworkIdentifier for .NET Core.
https://github.com/nunit/nunit/blob/259066fb2b8edb753f982a88662834e0c6a09215/src/NUnitFramework/framework/nunit.framework.csproj#L14

What's the behavior for .NET Standard?

@ctaggart
Copy link
Owner Author

ctaggart commented Feb 2, 2018

What's the behavior for .NET Standard?

SourceLink.Copy.PdbFiles is intended for apps, not libraries, but probably good to add some safety.

@jnm2
Copy link
Contributor

jnm2 commented Feb 2, 2018

Yes. My hope is that one day, netstandard console apps and test project will be the rule. (See dotnet/msbuild#1310 (comment) thru Jared's comment.)

@ctaggart ctaggart merged commit 72e1bc2 into master Feb 2, 2018
@ctaggart ctaggart deleted the pdbfiles branch February 2, 2018 19:29
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.

2 participants