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

Don't include symbols in the regular .nupkg file but still ensure symbols are portable #570

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

natemcmaster
Copy link
Contributor

Undo part of #568. Don't include .pdb files in the regular .nupkg, but still ensure DebugType == portable.

cref aspnet/Universe#131

cc @Eilon

@@ -51,8 +51,7 @@ public SimpleRepoTests(ITestOutputHelper output, RepoTestFixture fixture)

using (var reader = new PackageArchiveReader(libPackage))
{
Assert.Contains("lib/netstandard2.0/Simple.Lib.pdb", reader.GetFiles());
Assert.Contains("lib/net461/Simple.Lib.pdb", reader.GetFiles());
Assert.Empty(reader.GetFiles().Where(p => Path.GetExtension(p).Equals(".pdb", StringComparison.OrdinalIgnoreCase)));
Copy link
Member

Choose a reason for hiding this comment

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

My usual comment: always call static string.Equals because it properly guards against null. Not sure what GetExtension returns (nor do I trust it!).

@natemcmaster natemcmaster merged commit 3546d81 into aspnet:release/2.1 Feb 5, 2018
@natemcmaster natemcmaster deleted the revert-symbols branch February 5, 2018 21:45
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.

3 participants