// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Microsoft.Extensions.ProjectModel.Compilation
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class LibraryExport
{
///
/// Gets the library that produced this export
///
public LibraryDescription Library { get; }
///
/// Gets a list of fully-qualified paths to MSIL binaries required to run
///
public IEnumerable RuntimeAssemblies { get; }
///
/// Gets a list of fully-qualified paths to native binaries required to run
///
public IEnumerable NativeLibraries { get; }
///
/// Gets a list of fully-qualified paths to MSIL metadata references
///
public IEnumerable CompilationAssemblies { get; }
///
/// Gets a list of fully-qualified paths to source code file references
///
public IEnumerable SourceReferences { get; }
public LibraryExport(LibraryDescription library, IEnumerable compileAssemblies, IEnumerable sourceReferences, IEnumerable runtimeAssemblies, IEnumerable nativeLibraries)
{
Library = library;
CompilationAssemblies = compileAssemblies;
SourceReferences = sourceReferences;
RuntimeAssemblies = runtimeAssemblies;
NativeLibraries = nativeLibraries;
}
private string DebuggerDisplay
{
get
{
return Library.Identity.ToString();
}
}
}
}