Change app.config to appsettings.json

This commit is contained in:
parallelbgls
2017-05-27 16:51:16 +08:00
parent 9819caf415
commit 5e9e74bb02
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ namespace Modbus.Net
/// </summary>
private static readonly IConfigurationBuilder Builder = new ConfigurationBuilder()
.SetBasePath(RootPath ?? Directory.GetCurrentDirectory())
.AddXmlFile("App.config");
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true);
/// <summary>
/// RootPath of App.config and appsettings.json

View File

@@ -5,7 +5,7 @@
<AssemblyName>Modbus.Net</AssemblyName>
<RootNamespace>Modbus.Net</RootNamespace>
<PackageId>Modbus.Net.Core</PackageId>
<Version>1.3.8-beta1</Version>
<Version>1.3.8-beta2</Version>
<Product>Modbus.Net</Product>
<Authors>Chris L.(Luo Sheng)</Authors>
<Company>Hangzhou Delian IoT Science Technology Co.,Ltd.</Company>
@@ -54,7 +54,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="1.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Xml" Version="1.1.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="1.1.2" />
<PackageReference Include="Nito.AsyncEx.Tasks" Version="1.1.0" />
<PackageReference Include="Serilog" Version="2.4.0" />
<PackageReference Include="System.Collections.NonGeneric" Version="4.3.0" />