add support for type: platform
also some refactoring of DependencyContext to properly handle placeholders in 'runtimeTargets'.
This commit is contained in:
parent
39584c5612
commit
43512b8973
60 changed files with 870 additions and 572 deletions
|
@ -5,6 +5,7 @@ using System;
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.Extensions.DependencyModel
|
||||
{
|
||||
|
@ -54,12 +55,12 @@ namespace Microsoft.Extensions.DependencyModel
|
|||
foreach (var runtimeLibrary in context.RuntimeLibraries)
|
||||
{
|
||||
CheckMetadata(runtimeLibrary);
|
||||
foreach (var runtimeAssembly in runtimeLibrary.Assemblies)
|
||||
{
|
||||
var assembly = Assembly.Load(runtimeAssembly.Name);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var name in context.GetDefaultAssemblyNames())
|
||||
{
|
||||
var assembly = Assembly.Load(new AssemblyName(name));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"portable-net45+win8"
|
||||
],
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": "1.0.0-rc2-23911"
|
||||
"Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-rc2-23911" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"netstandard1.5": {
|
||||
"imports": [ "dnxcore50", "portable-net45+win8" ],
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.App": "1.0.0-rc2-23911",
|
||||
"Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-rc2-23911" },
|
||||
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue