fix issue in LibraryExporter with placeholders

This commit is contained in:
Andrew Stanton-Nurse 2016-03-24 12:42:04 -07:00 committed by Eric Erhardt
parent 1febe48d71
commit f7188ddb20

View file

@ -221,12 +221,12 @@ namespace Microsoft.DotNet.ProjectModel.Compilation
if (runtime.Any()) if (runtime.Any())
{ {
builder.AddRuntimeAssemblyGroup(new LibraryAssetGroup(targetGroup.Key, runtime)); builder.AddRuntimeAssemblyGroup(new LibraryAssetGroup(targetGroup.Key, runtime.Where(a => !PackageDependencyProvider.IsPlaceholderFile(a.RelativePath))));
} }
if (native.Any()) if (native.Any())
{ {
builder.AddNativeLibraryGroup(new LibraryAssetGroup(targetGroup.Key, native)); builder.AddNativeLibraryGroup(new LibraryAssetGroup(targetGroup.Key, native.Where(a => !PackageDependencyProvider.IsPlaceholderFile(a.RelativePath))));
} }
} }
} }