From 5e9e74bb02322483db40f0261ebe14b548dedd3b Mon Sep 17 00:00:00 2001 From: parallelbgls Date: Sat, 27 May 2017 16:51:16 +0800 Subject: [PATCH] Change app.config to appsettings.json --- Modbus.Net/Modbus.Net.Core/ConfigurationManager.cs | 2 +- Modbus.Net/Modbus.Net.Core/Modbus.Net.Core.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modbus.Net/Modbus.Net.Core/ConfigurationManager.cs b/Modbus.Net/Modbus.Net.Core/ConfigurationManager.cs index 4b30e6b..4891ce1 100644 --- a/Modbus.Net/Modbus.Net.Core/ConfigurationManager.cs +++ b/Modbus.Net/Modbus.Net.Core/ConfigurationManager.cs @@ -13,7 +13,7 @@ namespace Modbus.Net /// private static readonly IConfigurationBuilder Builder = new ConfigurationBuilder() .SetBasePath(RootPath ?? Directory.GetCurrentDirectory()) - .AddXmlFile("App.config"); + .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true); /// /// RootPath of App.config and appsettings.json diff --git a/Modbus.Net/Modbus.Net.Core/Modbus.Net.Core.csproj b/Modbus.Net/Modbus.Net.Core/Modbus.Net.Core.csproj index 1752996..cbfd3ff 100644 --- a/Modbus.Net/Modbus.Net.Core/Modbus.Net.Core.csproj +++ b/Modbus.Net/Modbus.Net.Core/Modbus.Net.Core.csproj @@ -5,7 +5,7 @@ Modbus.Net Modbus.Net Modbus.Net.Core - 1.3.8-beta1 + 1.3.8-beta2 Modbus.Net Chris L.(Luo Sheng) Hangzhou Delian IoT Science Technology Co.,Ltd. @@ -54,7 +54,7 @@ - +