Skip to content

Commit 1625e18

Browse files
authored
Net8 (#79)
* Update to net8 * Raise internal version. * Update to net8.0 and raise minor versions.
1 parent e46a75a commit 1625e18

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

src/SenseNet.Tools.Tests/SenseNet.Tools.Tests.csproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<LangVersion>latest</LangVersion>
77
<UserSecretsId>0c0d0f0f-1ccf-431b-b035-69256cb265cb</UserSecretsId>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
12-
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
13-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
14-
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
15-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.1" />
17-
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
18-
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
19-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
20-
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.1" />
11+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
12+
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.0" />
13+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
14+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
15+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
17+
<PackageReference Include="MSTest.TestAdapter" Version="3.7.0" />
18+
<PackageReference Include="MSTest.TestFramework" Version="3.7.0" />
19+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
20+
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
2121
</ItemGroup>
2222

2323
<ItemGroup>

src/SenseNet.Tools/Configuration/SnLegacyConfiguration.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Collections.Specialized;
4-
using System.Configuration;
54
using Microsoft.Extensions.Configuration;
65
using Microsoft.Extensions.Primitives;
76

@@ -26,7 +25,7 @@ public IConfigurationSection GetSection(string key)
2625
throw new ArgumentNullException(nameof(key));
2726

2827
// replace new section separator with the legacy one
29-
var section = ConfigurationManager.GetSection(key.Replace(':', '/')) as NameValueCollection;
28+
var section = System.Configuration.ConfigurationManager.GetSection(key.Replace(':', '/')) as NameValueCollection;
3029

3130
return new SnLegacyConfigSection(key, section);
3231
}
@@ -41,7 +40,7 @@ public IChangeToken GetReloadToken()
4140

4241
public string this[string key]
4342
{
44-
get => ConfigurationManager.AppSettings[key];
43+
get => System.Configuration.ConfigurationManager.AppSettings[key];
4544
set => throw new SnNotSupportedException("Setting a config value is not supported.");
4645
}
4746
}
@@ -81,12 +80,12 @@ public string this[string key]
8180
{
8281
// special section in old configuration files
8382
if (string.Compare(Key, "connectionStrings", StringComparison.InvariantCultureIgnoreCase) == 0)
84-
return ConfigurationManager.ConnectionStrings[key]?.ConnectionString;
83+
return System.Configuration.ConfigurationManager.ConnectionStrings[key]?.ConnectionString;
8584

8685
var configValue = _configValues?[key];
8786

8887
// backward compatibility: fallback to the appSettings section
89-
return configValue ?? ConfigurationManager.AppSettings[key];
88+
return configValue ?? System.Configuration.ConfigurationManager.AppSettings[key];
9089
}
9190
set => throw new SnNotSupportedException("Setting a section value is not supported.");
9291
}

src/SenseNet.Tools/SenseNet.Tools.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
4+
<TargetFramework>net8.0</TargetFramework>
55
<RootNamespace>SenseNet.Tools</RootNamespace>
66
<AssemblyName>SenseNet.Tools</AssemblyName>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8-
<Version>3.2.13</Version>
8+
<Version>3.3.0</Version>
99
<Title>sensenet Tools</Title>
1010
<Authors>tusmester,kavics</Authors>
1111
<Company>Sense/Net Inc.</Company>
@@ -34,16 +34,16 @@
3434
</PropertyGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="MailKit" Version="4.1.0" />
38-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
39-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.7" />
40-
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
41-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
37+
<PackageReference Include="MailKit" Version="4.9.0" />
38+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
39+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
40+
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.0" />
41+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
4242
<PrivateAssets>all</PrivateAssets>
4343
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4444
</PackageReference>
45-
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
46-
<PackageReference Include="System.Diagnostics.EventLog" Version="4.5.0" />
45+
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
46+
<PackageReference Include="System.Diagnostics.EventLog" Version="9.0.0" />
4747
</ItemGroup>
4848

4949
</Project>

0 commit comments

Comments
 (0)