private bool TryPopulateMetadataReferences(PackageDescription library, FrameworkName targetFramework, IDictionary<string, IMetadataReference> paths) { foreach (var assemblyPath in library.LockFileLibrary.CompileTimeAssemblies) { if (NuGetDependencyResolver.IsPlaceholderFile(assemblyPath)) { continue; } var name = Path.GetFileNameWithoutExtension(assemblyPath); var path = Path.Combine(library.Path, assemblyPath); paths[name] = new MetadataFileReference(name, path); } return true; }
private void PopulateMetadataReferences(PackageDescription package, IDictionary<string, IMetadataReference> paths) { foreach (var assemblyPath in package.Target.CompileTimeAssemblies) { if (PackageDependencyProvider.IsPlaceholderFile(assemblyPath)) { continue; } var name = Path.GetFileNameWithoutExtension(assemblyPath); var path = Path.Combine(package.Path, assemblyPath); paths[name] = new MetadataFileReference(name, path); } }