diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f04b1c4d..0e37da25a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2.1.1 (2016-12-06) + +* Look for ```.exe.config``` file for XML configuration. + # 2.1.0 (2016-11-18) * User-Agent reporting. You may also append an application-specific ID via settings.json. diff --git a/Nexmo.Api/Configuration.cs b/Nexmo.Api/Configuration.cs index d326fa9a8..47ef793ac 100644 --- a/Nexmo.Api/Configuration.cs +++ b/Nexmo.Api/Configuration.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics; using System.Net.Http; using Microsoft.Extensions.Configuration; using Nexmo.Api.ConfigurationExtensions; @@ -23,6 +24,7 @@ private Configuration() }) .AddConfigFile("web.config", true) .AddConfigFile("app.config", true) + .AddConfigFile($"{System.IO.Path.GetFileName(Process.GetCurrentProcess().MainModule.FileName)}.config", true) .AddJsonFile("settings.json", true, true) ; diff --git a/Nexmo.Api/Nexmo.Api.nuspec b/Nexmo.Api/Nexmo.Api.nuspec index d8cb66a72..dbaa23ab6 100644 --- a/Nexmo.Api/Nexmo.Api.nuspec +++ b/Nexmo.Api/Nexmo.Api.nuspec @@ -2,7 +2,7 @@ Nexmo.Csharp.Client - 2.1.0 + 2.1.1 Nexmo API Client Nexmo Nexmo @@ -12,8 +12,7 @@ false Official C#/.NET wrapper for the Nexmo API - * User-Agent reporting. You may also append an application-specific ID via settings.json. - * [BREAKING] Support web.config XML. This has changed the settings.json structure slightly. + * Look for executing_process_filename.exe.config file for XML configuration. © Nexmo 2016 SMS voice telephony phone nexmo @@ -30,9 +29,11 @@ + + diff --git a/Nexmo.Api/Properties/AssemblyInfo.cs b/Nexmo.Api/Properties/AssemblyInfo.cs index dda8c3ba4..e908dc629 100644 --- a/Nexmo.Api/Properties/AssemblyInfo.cs +++ b/Nexmo.Api/Properties/AssemblyInfo.cs @@ -34,5 +34,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.1.0.0")] -[assembly: AssemblyFileVersion("2.1.0.0")] +[assembly: AssemblyVersion("2.1.1.0")] +[assembly: AssemblyFileVersion("2.1.1.0")] \ No newline at end of file diff --git a/Nexmo.Api/project.json b/Nexmo.Api/project.json index bdcd8e457..3af4fef41 100644 --- a/Nexmo.Api/project.json +++ b/Nexmo.Api/project.json @@ -1,13 +1,11 @@ { - "version": "2.1.0-*", + "version": "2.1.1-*", "dependencies": { "Microsoft.Extensions.Configuration": "1.0.*", "Microsoft.Extensions.Configuration.Json": "1.0.*", "Microsoft.Extensions.Logging": "1.0.*", "System.Collections.Immutable": "1.2.*", - "System.Net.Http": "4.*", - "System.Runtime.Extensions": "4.1.*", "Newtonsoft.Json": "9.0.*", "jose-jwt": "2.0.*" @@ -16,24 +14,32 @@ "frameworks": { "net452": { "frameworkAssemblies": { + "System.Net.Http": "4.0.*", + "System.Runtime.Extensions": "4.0.*", "System.Xml": "4.0.0.0", "System.Xml.Linq": "4.0.0.0" } }, "net46": { "frameworkAssemblies": { + "System.Net.Http": "4.0.*", + "System.Runtime.Extensions": "4.0.10.*", "System.Xml": "4.0.0.0", "System.Xml.Linq": "4.0.0.0" } }, "net461": { "frameworkAssemblies": { + "System.Net.Http": "4.0.*", + "System.Runtime.Extensions": "4.0.10.*", "System.Xml": "4.0.0.0", "System.Xml.Linq": "4.0.0.0" } }, "net462": { "frameworkAssemblies": { + "System.Net.Http": "4.0.*", + "System.Runtime.Extensions": "4.0.10.*", "System.Xml": "4.0.0.0", "System.Xml.Linq": "4.0.0.0" } @@ -41,9 +47,10 @@ "netstandard1.6": { "dependencies": { "NETStandard.Library": "1.6.0", - "System.Security.Cryptography.Algorithms": "4.2.0", - "System.Security.Cryptography.OpenSsl": "4.0.0", - "System.Security.Cryptography.Cng": "4.2.0", + "System.Diagnostics.Process": "4.1.*", + "System.Security.Cryptography.Algorithms": "4.3.0", + "System.Security.Cryptography.OpenSsl": "4.3.0", + "System.Security.Cryptography.Cng": "4.3.0", "System.Xml.XDocument": "4.0.*" } } diff --git a/README.md b/README.md index e0198a43e..1387fb05b 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,15 @@ Configuration: ``` -* ```settings.json``` takes precedence over ```web.config```. As you are able, please move your project -to JSON configuration as this will be going away in a future release. +* In the event multiple configuration files are found, the order of precedence is as follows: + + * ```settings.json``` which overrides + * ```.config``` which overrides + * ```app.config``` which overrides + * ```web.config``` + +* As you are able, please move your project to JSON configuration as XML +configuration will be going away in a future release. Examples --------