Remove IsLoadable from Project
This commit is contained in:
parent
fe3a9d1332
commit
b2ebe529bd
4 changed files with 2 additions and 13 deletions
|
@ -77,8 +77,6 @@ namespace Microsoft.Extensions.ProjectModel
|
|||
|
||||
public string[] Tags { get; set; }
|
||||
|
||||
public bool IsLoadable { get; set; }
|
||||
|
||||
public ProjectFilesCollection Files { get; set; }
|
||||
|
||||
public IDictionary<string, string> Commands { get; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
|
|
@ -25,7 +25,6 @@ namespace Microsoft.Extensions.ProjectModel
|
|||
LibraryRange libraryRange,
|
||||
Project project,
|
||||
IEnumerable<LibraryRange> dependencies,
|
||||
IEnumerable<string> assemblies,
|
||||
TargetFrameworkInformation targetFrameworkInfo,
|
||||
bool resolved) :
|
||||
base(
|
||||
|
|
|
@ -102,8 +102,8 @@ namespace Microsoft.Extensions.ProjectModel
|
|||
project.ReleaseNotes = rawProject.ValueAsString("releaseNotes");
|
||||
|
||||
project.RequireLicenseAcceptance = rawProject.ValueAsBoolean("requireLicenseAcceptance", defaultValue: false);
|
||||
project.IsLoadable = rawProject.ValueAsBoolean("loadable", defaultValue: true);
|
||||
// TODO: Move this to the dependencies node
|
||||
|
||||
// REVIEW: Move this to the dependencies node?
|
||||
project.EmbedInteropTypes = rawProject.ValueAsBoolean("embedInteropTypes", defaultValue: false);
|
||||
|
||||
project.Dependencies = new List<LibraryRange>();
|
||||
|
|
|
@ -51,13 +51,6 @@ namespace Microsoft.Extensions.ProjectModel.Resolution
|
|||
|
||||
var dependencies = project.Dependencies.Concat(targetFrameworkDependencies).ToList();
|
||||
|
||||
var loadableAssemblies = new List<string>();
|
||||
|
||||
if (project.IsLoadable)
|
||||
{
|
||||
loadableAssemblies.Add(project.Name);
|
||||
}
|
||||
|
||||
// Mark the library as unresolved if there were specified frameworks
|
||||
// and none of them resolved
|
||||
bool unresolved = targetFrameworkInfo.FrameworkName == null;
|
||||
|
@ -66,7 +59,6 @@ namespace Microsoft.Extensions.ProjectModel.Resolution
|
|||
new LibraryRange(project.Name, LibraryType.Unspecified),
|
||||
project,
|
||||
dependencies,
|
||||
loadableAssemblies,
|
||||
targetFrameworkInfo,
|
||||
!unresolved);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue