2015-11-16 11:21:57 -08:00
|
|
|
|
// 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.
|
|
|
|
|
|
2015-10-13 14:31:29 -07:00
|
|
|
|
using System.Collections.Generic;
|
2015-11-01 16:21:10 -08:00
|
|
|
|
using System.Diagnostics;
|
2015-10-13 14:31:29 -07:00
|
|
|
|
|
2015-11-27 16:19:54 -08:00
|
|
|
|
namespace Microsoft.DotNet.ProjectModel.Compilation
|
2015-10-13 14:31:29 -07:00
|
|
|
|
{
|
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
|
|
|
|
|
2016-01-27 20:35:43 -08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Non assembly runtime assets.
|
|
|
|
|
/// </summary>
|
2016-02-03 10:57:25 -08:00
|
|
|
|
public IEnumerable<LibraryAsset> RuntimeAssets { get; }
|
2016-01-27 20:35:43 -08:00
|
|
|
|
|
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; }
|
2016-01-27 20:35:43 -08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get a list of analyzers provided by this export.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<AnalyzerReference> AnalyzerReferences { get; }
|
|
|
|
|
|
|
|
|
|
public LibraryExport(LibraryDescription library,
|
|
|
|
|
IEnumerable<LibraryAsset> compileAssemblies,
|
|
|
|
|
IEnumerable<string> sourceReferences,
|
|
|
|
|
IEnumerable<LibraryAsset> runtimeAssemblies,
|
2016-02-03 10:57:25 -08:00
|
|
|
|
IEnumerable<LibraryAsset> runtimeAssets,
|
2016-01-27 20:35:43 -08:00
|
|
|
|
IEnumerable<LibraryAsset> nativeLibraries,
|
|
|
|
|
IEnumerable<AnalyzerReference> analyzers)
|
|
|
|
|
{
|
|
|
|
|
Library = library;
|
|
|
|
|
CompilationAssemblies = compileAssemblies;
|
|
|
|
|
SourceReferences = sourceReferences;
|
|
|
|
|
RuntimeAssemblies = runtimeAssemblies;
|
|
|
|
|
RuntimeAssets = runtimeAssets;
|
|
|
|
|
NativeLibraries = nativeLibraries;
|
|
|
|
|
AnalyzerReferences = analyzers;
|
|
|
|
|
}
|
2015-11-01 16:21:10 -08:00
|
|
|
|
|
2016-01-11 22:26:34 -08:00
|
|
|
|
private string DebuggerDisplay => Library.Identity.ToString();
|
2015-10-13 14:31:29 -07:00
|
|
|
|
}
|
2015-10-21 15:21:14 -07:00
|
|
|
|
}
|