Reacting to CoreCLR package changes
This commit is contained in:
parent
a78f77afde
commit
06289945d0
|
|
@ -14,9 +14,6 @@ namespace MvcSandbox
|
|||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddMvc();
|
||||
#if DNX451
|
||||
services.AddMvcDnx();
|
||||
#endif
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
|
|
|
|||
|
|
@ -21,12 +21,6 @@
|
|||
"dotnet-razor-tooling": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Microsoft.AspNetCore.Mvc.Dnx": "1.0.0-*",
|
||||
"System.Runtime": "4.1.0-*"
|
||||
}
|
||||
},
|
||||
"net451": { },
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
|||
|
|
@ -26,9 +26,9 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using Microsoft.AspNetCore.Mvc.Core;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using Microsoft.AspNetCore.Mvc.Core;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using System.Threading.Tasks;
|
||||
|
|
|
|||
|
|
@ -52,9 +52,9 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
],
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
"System.ComponentModel.DataAnnotations": ""
|
||||
}
|
||||
},
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
],
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
"System.Xml": ""
|
||||
}
|
||||
},
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
],
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"dependencies": {
|
||||
"System.Collections.Concurrent": "4.0.12-*",
|
||||
"System.ComponentModel.TypeConverter": "4.0.1-*",
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
"System.Text.Encoding.Extensions": "4.0.11-*"
|
||||
},
|
||||
"imports": [
|
||||
"dotnet5.4"
|
||||
"dotnet5.6"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using System;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
using System.Reflection;
|
||||
#endif
|
||||
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http.Headers;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using Microsoft.AspNetCore.WebUtilities;
|
||||
using System.Collections;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http.Headers;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Net.Http.Headers;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Net.Http.Headers;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
namespace System.Net.Http.Formatting
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.Net.Http.Headers;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if NETSTANDARD1_3
|
||||
#if NETSTANDARD1_5
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace System.Net.Http
|
|||
/// </summary>
|
||||
public static class HttpRequestMessageExtensions
|
||||
{
|
||||
#if !NETSTANDARD1_3
|
||||
#if !NETSTANDARD1_5
|
||||
|
||||
/// <summary>
|
||||
/// Helper method for creating an <see cref="HttpResponseMessage"/> message with a "416 (Requested Range Not
|
||||
|
|
|
|||
|
|
@ -31,9 +31,9 @@
|
|||
"System.Xml": ""
|
||||
}
|
||||
},
|
||||
"netstandard1.3": {
|
||||
"netstandard1.5": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
"dotnet5.6",
|
||||
"portable-net451+win8"
|
||||
],
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -23,13 +20,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -14,9 +14,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -28,13 +25,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -24,9 +24,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -38,13 +35,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -30,13 +27,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -30,13 +27,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -16,9 +16,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -30,13 +27,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
#if DNX451
|
||||
#if NET451
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -29,13 +26,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
public async Task CompilationOptions_AreUsedByViewsAndPartials()
|
||||
{
|
||||
// Arrange
|
||||
#if NET451 || DNX451
|
||||
#if NET451
|
||||
var expected =
|
||||
@"This method is running from NET451
|
||||
This method is only defined in NET451";
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ using Microsoft.AspNetCore.Mvc.Razor.Compilation;
|
|||
using Microsoft.AspNetCore.Mvc.Razor.Internal;
|
||||
using Microsoft.AspNetCore.TestHost;
|
||||
using Microsoft.AspNetCore.Testing;
|
||||
#if DNX451
|
||||
using Microsoft.Extensions.CompilationAbstractions;
|
||||
#endif
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
|
||||
|
|
@ -59,26 +56,13 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
|
|||
{
|
||||
var startupAssembly = typeof(TStartup).GetTypeInfo().Assembly;
|
||||
var applicationName = startupAssembly.GetName().Name;
|
||||
#if DNX451
|
||||
var libraryManager = DnxPlatformServices.Default.LibraryManager;
|
||||
var library = libraryManager.GetLibrary(applicationName);
|
||||
return Path.GetDirectoryName(library.Path);
|
||||
#else
|
||||
var applicationBasePath = PlatformServices.Default.Application.ApplicationBasePath;
|
||||
return Path.GetFullPath(Path.Combine(applicationBasePath, relativePath, applicationName));
|
||||
#endif
|
||||
}
|
||||
|
||||
protected virtual void InitializeServices(IServiceCollection services)
|
||||
{
|
||||
var startupAssembly = typeof(TStartup).GetTypeInfo().Assembly;
|
||||
var applicationName = startupAssembly.GetName().Name;
|
||||
|
||||
var applicationEnvironment = PlatformServices.Default.Application;
|
||||
#if DNX451
|
||||
services.AddSingleton(CompilationServices.Default.LibraryExporter);
|
||||
services.AddSingleton<ICompilationService, DnxRoslynCompilationService>();
|
||||
#endif
|
||||
|
||||
// Inject a custom assembly provider. Overrides AddMvc() because that uses TryAdd().
|
||||
var assemblyProvider = new StaticAssemblyProvider();
|
||||
|
|
|
|||
|
|
@ -53,9 +53,6 @@
|
|||
"XmlFormattersWebSite": "1.0.0"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"dependencies": {
|
||||
|
|
@ -68,17 +65,6 @@
|
|||
"portable-net451+win8"
|
||||
]
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Microsoft.AspNetCore.Mvc.Dnx": "1.0.0-*",
|
||||
"System.Collections": "4.0.11-*",
|
||||
"System.IO": "4.1.0-*",
|
||||
"System.Reflection": "4.1.0-*",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"System.Threading": "4.0.11-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {}
|
||||
},
|
||||
"exclude": [
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -29,13 +26,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -14,9 +14,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -28,13 +25,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"compilationOptions": {
|
||||
"define": [
|
||||
"__RemoveThisBitTo__GENERATE_BASELINES"
|
||||
|
|
@ -35,13 +32,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -30,9 +30,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -44,13 +41,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -31,13 +28,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
"xunit": "2.1.0"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -25,13 +22,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -211,11 +211,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewComponents
|
|||
return
|
||||
GetAssemblyProvider()
|
||||
.CandidateAssemblies
|
||||
.SelectMany(a => a.DefinedTypes)
|
||||
#if DNX451
|
||||
.Select(t => t.GetTypeInfo())
|
||||
#endif
|
||||
;
|
||||
.SelectMany(a => a.DefinedTypes);
|
||||
}
|
||||
|
||||
private static IAssemblyProvider GetAssemblyProvider()
|
||||
|
|
|
|||
|
|
@ -22,9 +22,6 @@
|
|||
"Microsoft.NETCore.Platforms": "1.0.1-*"
|
||||
},
|
||||
"testRunner": "xunit",
|
||||
"commands": {
|
||||
"test": "xunit.runner.aspnet"
|
||||
},
|
||||
"frameworks": {
|
||||
"netstandardapp1.5": {
|
||||
"imports": [
|
||||
|
|
@ -36,13 +33,6 @@
|
|||
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||
}
|
||||
},
|
||||
"dnx451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622",
|
||||
"System.Runtime": "4.1.0-*",
|
||||
"xunit.runner.aspnet": "2.0.0-aspnet-*"
|
||||
}
|
||||
},
|
||||
"net451": {
|
||||
"dependencies": {
|
||||
"Moq": "4.2.1312.1622"
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"netstandardapp1.5": {
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dnxcore50",
|
||||
"dotnet4.5",
|
||||
"portable-net451+win8"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue