Add Microsoft.AspNetCore.All

Fixes https://github.com/aspnet/Mvc/issues/7605
This commit is contained in:
Pranav K 2018-04-06 10:07:57 -07:00
parent 07a1907918
commit 5e019bd707
No known key found for this signature in database
GPG Key ID: 1963DA6D96C3057A
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,10 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationParts
{
internal static HashSet<string> ReferenceAssemblies { get; } = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
// The deps file for the Microsoft.AspNetCore.All shared runtime is authored in a way where it does not say
// it depends on Microsoft.AspNetCore.Mvc even though it does. Explicitly list it so that referencing this runtime causes
// assembly discovery to work correctly.
"Microsoft.AspNetCore.All",
"Microsoft.AspNetCore.Mvc",
"Microsoft.AspNetCore.Mvc.Abstractions",
"Microsoft.AspNetCore.Mvc.ApiExplorer",

View File

@ -356,6 +356,7 @@ namespace Microsoft.AspNetCore.Mvc.ApplicationParts
var additionalAssemblies = new[]
{
// The following assemblies are not reachable from Microsoft.AspNetCore.Mvc
"Microsoft.AspNetCore.All",
"Microsoft.AspNetCore.Mvc.Formatters.Xml",
};