Transition to netstandard.
- dotnet5.X => netstandard1.y (where y = x-1). - DNXCore50 => netstandardapp1.5. - Applied the same changes to ifdefs.
This commit is contained in:
parent
6defb6e85b
commit
57371e5c9c
|
|
@ -6,8 +6,11 @@
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": {},
|
"dnx451": {},
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"imports": "portable-net451+win8"
|
"imports": [
|
||||||
}
|
"dnxcore50",
|
||||||
|
"portable-net451+win8"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3,7 +3,9 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk",
|
"keyFile": "../../tools/Key.snk",
|
||||||
"nowarn": [ "CS1591" ],
|
"nowarn": [
|
||||||
|
"CS1591"
|
||||||
|
],
|
||||||
"xmlDoc": true
|
"xmlDoc": true
|
||||||
},
|
},
|
||||||
"description": "ASP.NET 5 Hosting abstractions.",
|
"description": "ASP.NET 5 Hosting abstractions.",
|
||||||
|
|
@ -20,6 +22,10 @@
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": {},
|
"net451": {},
|
||||||
"dotnet5.4": {}
|
"netstandard1.3": {
|
||||||
|
"imports": [
|
||||||
|
"dotnet5.4"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3,7 +3,9 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk",
|
"keyFile": "../../tools/Key.snk",
|
||||||
"nowarn": [ "CS1591" ],
|
"nowarn": [
|
||||||
|
"CS1591"
|
||||||
|
],
|
||||||
"xmlDoc": true
|
"xmlDoc": true
|
||||||
},
|
},
|
||||||
"description": "ASP.NET 5 Hosting server abstractions.",
|
"description": "ASP.NET 5 Hosting server abstractions.",
|
||||||
|
|
@ -16,7 +18,11 @@
|
||||||
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0-*"
|
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": { },
|
"net451": {},
|
||||||
"dotnet5.4": { }
|
"netstandard1.3": {
|
||||||
|
"imports": [
|
||||||
|
"dotnet5.4"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -233,7 +233,7 @@ namespace Microsoft.AspNetCore.Hosting.Startup
|
||||||
private static string GenerateFooterEncoded(IRuntimeEnvironment environment)
|
private static string GenerateFooterEncoded(IRuntimeEnvironment environment)
|
||||||
{
|
{
|
||||||
var runtimeType = HtmlEncodeAndReplaceLineBreaks(environment.RuntimeType);
|
var runtimeType = HtmlEncodeAndReplaceLineBreaks(environment.RuntimeType);
|
||||||
#if DNXCORE50 || DOTNET5_4
|
#if NETSTANDARDAPP1_5 || NETSTANDARD1_3
|
||||||
var systemRuntimeAssembly = typeof(System.ComponentModel.DefaultValueAttribute).GetTypeInfo().Assembly;
|
var systemRuntimeAssembly = typeof(System.ComponentModel.DefaultValueAttribute).GetTypeInfo().Assembly;
|
||||||
var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName).Version.ToString();
|
var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName).Version.ToString();
|
||||||
var clrVersion = HtmlEncodeAndReplaceLineBreaks(assemblyVersion);
|
var clrVersion = HtmlEncodeAndReplaceLineBreaks(assemblyVersion);
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,9 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk",
|
"keyFile": "../../tools/Key.snk",
|
||||||
"nowarn": [ "CS1591" ],
|
"nowarn": [
|
||||||
|
"CS1591"
|
||||||
|
],
|
||||||
"xmlDoc": true
|
"xmlDoc": true
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
@ -34,16 +36,21 @@
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": {
|
"net451": {
|
||||||
"frameworkAssemblies": {
|
"frameworkAssemblies": {
|
||||||
"System.Runtime": { "type": "build" }
|
"System.Runtime": {
|
||||||
|
"type": "build"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dotnet5.4": {
|
"netstandard1.3": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Console": "4.0.0-*",
|
"System.Console": "4.0.0-*",
|
||||||
"System.Diagnostics.StackTrace": "4.0.1-*",
|
"System.Diagnostics.StackTrace": "4.0.1-*",
|
||||||
"System.Reflection.Extensions": "4.0.1-*"
|
"System.Reflection.Extensions": "4.0.1-*"
|
||||||
},
|
},
|
||||||
"imports": "portable-net45+win8"
|
"imports": [
|
||||||
|
"dotnet5.4",
|
||||||
|
"portable-net45+win8"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -161,7 +161,7 @@ namespace Microsoft.AspNetCore.Server.Testing
|
||||||
var environment =
|
var environment =
|
||||||
#if NET451
|
#if NET451
|
||||||
startInfo.EnvironmentVariables;
|
startInfo.EnvironmentVariables;
|
||||||
#elif DNXCORE50
|
#elif NETSTANDARDAPP1_5
|
||||||
startInfo.Environment;
|
startInfo.Environment;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -176,7 +176,7 @@ namespace Microsoft.AspNetCore.Server.Testing
|
||||||
#if NET451
|
#if NET451
|
||||||
protected void SetEnvironmentVariable(System.Collections.Specialized.StringDictionary environment, string name, string value)
|
protected void SetEnvironmentVariable(System.Collections.Specialized.StringDictionary environment, string name, string value)
|
||||||
{
|
{
|
||||||
#elif DNXCORE50
|
#elif NETSTANDARDAPP1_5
|
||||||
protected void SetEnvironmentVariable(System.Collections.Generic.IDictionary<string, string> environment, string name, string value)
|
protected void SetEnvironmentVariable(System.Collections.Generic.IDictionary<string, string> environment, string name, string value)
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ namespace Microsoft.AspNetCore.Server.Testing
|
||||||
#if NET451
|
#if NET451
|
||||||
SetEnvironmentVariable(startInfo.EnvironmentVariables, "PATH", startInfo.EnvironmentVariables["PATH"]);
|
SetEnvironmentVariable(startInfo.EnvironmentVariables, "PATH", startInfo.EnvironmentVariables["PATH"]);
|
||||||
SetEnvironmentVariable(startInfo.EnvironmentVariables, "DNX_APPBASE", DeploymentParameters.ApplicationPath);
|
SetEnvironmentVariable(startInfo.EnvironmentVariables, "DNX_APPBASE", DeploymentParameters.ApplicationPath);
|
||||||
#elif DOTNET5_4
|
#elif NETSTANDARD1_3
|
||||||
SetEnvironmentVariable(startInfo.Environment, "PATH", startInfo.Environment["PATH"]);
|
SetEnvironmentVariable(startInfo.Environment, "PATH", startInfo.Environment["PATH"]);
|
||||||
SetEnvironmentVariable(startInfo.Environment, "DNX_APPBASE", DeploymentParameters.ApplicationPath);
|
SetEnvironmentVariable(startInfo.Environment, "DNX_APPBASE", DeploymentParameters.ApplicationPath);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,9 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk",
|
"keyFile": "../../tools/Key.snk",
|
||||||
"nowarn": [ "CS1591" ],
|
"nowarn": [
|
||||||
|
"CS1591"
|
||||||
|
],
|
||||||
"xmlDoc": true
|
"xmlDoc": true
|
||||||
},
|
},
|
||||||
"description": "ASP.NET 5 helpers to deploy applications to IIS Express, IIS, WebListener and Kestrel for testing.",
|
"description": "ASP.NET 5 helpers to deploy applications to IIS Express, IIS, WebListener and Kestrel for testing.",
|
||||||
|
|
@ -23,10 +25,10 @@
|
||||||
"Microsoft.Web.Administration": "7.0.0"
|
"Microsoft.Web.Administration": "7.0.0"
|
||||||
},
|
},
|
||||||
"frameworkAssemblies": {
|
"frameworkAssemblies": {
|
||||||
"System.Net.Http": "",
|
"System.Net.Http": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Diagnostics.Process": "4.1.0-*",
|
"System.Diagnostics.Process": "4.1.0-*",
|
||||||
"System.IO.FileSystem": "4.0.1-*",
|
"System.IO.FileSystem": "4.0.1-*",
|
||||||
|
|
@ -37,7 +39,10 @@
|
||||||
"System.Threading": "4.0.11-*",
|
"System.Threading": "4.0.11-*",
|
||||||
"System.Threading.Thread": "4.0.0-*"
|
"System.Threading.Thread": "4.0.0-*"
|
||||||
},
|
},
|
||||||
"imports": "portable-net45+win8"
|
"imports": [
|
||||||
|
"dnxcore50",
|
||||||
|
"portable-net45+win8"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3,7 +3,9 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk",
|
"keyFile": "../../tools/Key.snk",
|
||||||
"nowarn": [ "CS1591" ],
|
"nowarn": [
|
||||||
|
"CS1591"
|
||||||
|
],
|
||||||
"xmlDoc": true
|
"xmlDoc": true
|
||||||
},
|
},
|
||||||
"description": "ASP.NET 5 web server for writing and running tests.",
|
"description": "ASP.NET 5 web server for writing and running tests.",
|
||||||
|
|
@ -20,12 +22,15 @@
|
||||||
"System.Net.Http": ""
|
"System.Net.Http": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dotnet5.4": {
|
"netstandard1.3": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"System.Diagnostics.Contracts": "4.0.1-*",
|
"System.Diagnostics.Contracts": "4.0.1-*",
|
||||||
"System.Net.Http": "4.0.1-*"
|
"System.Net.Http": "4.0.1-*"
|
||||||
},
|
},
|
||||||
"imports": "portable-net45+win8"
|
"imports": [
|
||||||
|
"dotnet5.4",
|
||||||
|
"portable-net45+win8"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -16,11 +16,14 @@
|
||||||
"xunit": "2.1.0"
|
"xunit": "2.1.0"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotnet-test-xunit": "1.0.0-dev-*"
|
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||||
},
|
},
|
||||||
"imports": "portable-net451+win8"
|
"imports": [
|
||||||
|
"dnxcore50",
|
||||||
|
"portable-net451+win8"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"net451": {
|
"net451": {
|
||||||
"frameworkAssemblies": {
|
"frameworkAssemblies": {
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,14 @@
|
||||||
"xunit": "2.1.0"
|
"xunit": "2.1.0"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnxcore50": {
|
"netstandardapp1.5": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotnet-test-xunit": "1.0.0-dev-*"
|
"dotnet-test-xunit": "1.0.0-dev-*"
|
||||||
},
|
},
|
||||||
"imports": "portable-net451+win8"
|
"imports": [
|
||||||
|
"dnxcore50",
|
||||||
|
"portable-net451+win8"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"net451": {
|
"net451": {
|
||||||
"frameworkAssemblies": {
|
"frameworkAssemblies": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue