2015-10-13 14:31:29 -07:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2015-11-01 16:21:10 -08:00
|
|
|
|
using System.Diagnostics;
|
2015-10-13 14:31:29 -07:00
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Extensions.ProjectModel.Compilation
|
|
|
|
|
{
|
2015-11-01 16:21:10 -08:00
|
|
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
2015-10-13 14:31:29 -07:00
|
|
|
|
public class LibraryExport
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the library that produced this export
|
|
|
|
|
/// </summary>
|
2015-10-21 15:21:14 -07:00
|
|
|
|
public LibraryDescription Library { get; }
|
|
|
|
|
|
2015-10-13 14:31:29 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a list of fully-qualified paths to MSIL binaries required to run
|
|
|
|
|
/// </summary>
|
2015-10-21 15:21:14 -07:00
|
|
|
|
public IEnumerable<LibraryAsset> RuntimeAssemblies { get; }
|
2015-10-13 14:31:29 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a list of fully-qualified paths to native binaries required to run
|
|
|
|
|
/// </summary>
|
2015-10-21 15:21:14 -07:00
|
|
|
|
public IEnumerable<LibraryAsset> NativeLibraries { get; }
|
2015-10-13 14:31:29 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a list of fully-qualified paths to MSIL metadata references
|
|
|
|
|
/// </summary>
|
2015-10-21 15:21:14 -07:00
|
|
|
|
public IEnumerable<LibraryAsset> CompilationAssemblies { get; }
|
2015-10-13 14:31:29 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a list of fully-qualified paths to source code file references
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<string> SourceReferences { get; }
|
|
|
|
|
|
2015-10-21 15:21:14 -07:00
|
|
|
|
public LibraryExport(LibraryDescription library, IEnumerable<LibraryAsset> compileAssemblies, IEnumerable<string> sourceReferences, IEnumerable<LibraryAsset> runtimeAssemblies, IEnumerable<LibraryAsset> nativeLibraries)
|
2015-10-13 14:31:29 -07:00
|
|
|
|
{
|
|
|
|
|
Library = library;
|
|
|
|
|
CompilationAssemblies = compileAssemblies;
|
|
|
|
|
SourceReferences = sourceReferences;
|
|
|
|
|
RuntimeAssemblies = runtimeAssemblies;
|
|
|
|
|
NativeLibraries = nativeLibraries;
|
|
|
|
|
}
|
2015-11-01 16:21:10 -08:00
|
|
|
|
|
|
|
|
|
private string DebuggerDisplay
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return Library.Identity.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-10-13 14:31:29 -07:00
|
|
|
|
}
|
2015-10-21 15:21:14 -07:00
|
|
|
|
}
|