mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-10-31 16:25:27 +08:00 
			
		
		
		
	test passing on mac and windows
This commit is contained in:
		| @@ -31,7 +31,8 @@ | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|     "osx.10.11-x64":{}, | ||||
|     "win7-x64": {} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -16,14 +16,19 @@ | ||||
|  | ||||
|             if(RuntimeInformation.OSDescription.ToLower().Contains("darwin")) | ||||
|             { | ||||
|                 oSDescription = "osx.10.11"; | ||||
|                 return FormatConfigurationPath("osx.10.11", osArchitecture); | ||||
|             } | ||||
|  | ||||
|             if(RuntimeInformation.OSDescription.ToLower().Contains("windows")) | ||||
|             { | ||||
|                 oSDescription = "win10"; | ||||
|             if(RuntimeInformation.OSDescription.ToLower().Contains("microsoft windows 10")) | ||||
|             {                 | ||||
|                 return FormatConfigurationPath("win10", osArchitecture); | ||||
|             } | ||||
|              | ||||
|             return FormatConfigurationPath("win7", osArchitecture); | ||||
|         } | ||||
|  | ||||
|         private static string FormatConfigurationPath(string oSDescription, string osArchitecture) | ||||
|         { | ||||
|             var runTime = $"{oSDescription}-{osArchitecture}".ToLower(); | ||||
|  | ||||
|             var configPath = $"./bin/Debug/netcoreapp{Version}/{runTime}/configuration.json"; | ||||
|   | ||||
| @@ -36,7 +36,8 @@ | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|     "osx.10.11-x64":{}, | ||||
|     "win7-x64": {} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -10,7 +10,8 @@ | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|     "osx.10.11-x64":{}, | ||||
|     "win7-x64": {} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -20,7 +20,8 @@ | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|     "osx.10.11-x64":{}, | ||||
|     "win7-x64": {} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
| @@ -28,7 +28,8 @@ | ||||
|   }, | ||||
|   "runtimes": { | ||||
|     "win10-x64": {}, | ||||
|     "osx.10.11-x64":{} | ||||
|     "osx.10.11-x64":{}, | ||||
|     "win7-x64": {} | ||||
|   }, | ||||
|   "frameworks": { | ||||
|     "netcoreapp1.4": { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tom Gardham-Pallister
					Tom Gardham-Pallister