Merge branch '49-move-to-net-7' into 'main'

Resolve "Move to .NET 7"

Closes #49

See merge request open-source/dotnet/i18n-commander!26
This commit is contained in:
Thorsten 2023-02-12 13:08:38 +00:00
commit 6a97340465
6 changed files with 14 additions and 13 deletions

View File

@ -2,19 +2,20 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>default</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.9">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.9" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.0" />
</ItemGroup>
<ItemGroup>

View File

@ -275,9 +275,9 @@ public sealed class DataContext : DbContext, IDataContext
if(parentId == Guid.Empty)
{
if(section.Depth != 0)
Console.WriteLine(@$"Section {uniqueId} ""{section.Name}"" has no parent.");
Console.WriteLine($"""Section {uniqueId} "{section.Name}" has no parent.""");
else
Console.WriteLine(@$"Section {uniqueId} ""{section.Name}"" is a root section, thus, has no parent.");
Console.WriteLine($"""Section {uniqueId} "{section.Name}" is a root section, thus, has no parent.""");
section.Parent = null;
continue;
@ -287,7 +287,7 @@ public sealed class DataContext : DbContext, IDataContext
section.Parent = parent.Entity;
else
{
Console.WriteLine(@$"Parent of section {uniqueId} ""{section.Name}"" was not found.");
Console.WriteLine($"""Parent of section {uniqueId} "{section.Name}" was not found.""");
section.Parent = null;
continue;
}

View File

@ -144,7 +144,7 @@ public static class Setup
StartInfo = new()
{
FileName = "cmd.exe",
Arguments = $@"/C del /Q /F ""{Setup.SETUP_MAINTENANCE.PathToDataFile}""",
Arguments = $"""/C del /Q /F "{Setup.SETUP_MAINTENANCE.PathToDataFile}" """,
UseShellExecute = false,
CreateNoWindow = true,
}

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>default</LangVersion>
@ -12,7 +12,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="DeepL.net" Version="1.4.0" />
<PackageReference Include="DeepL.net" Version="1.6.0" />
</ItemGroup>
</Project>

View File

@ -2,5 +2,5 @@
public static class Version
{
public static string Text => $"v0.8.5 (2023-02-12), .NET {Environment.Version}";
public static string Text => $"v0.8.6 (2023-02-12), .NET {Environment.Version}";
}

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType Condition=" '$(Configuration)' == 'Release' ">WinExe</OutputType>
<OutputType Condition=" '$(Configuration)' == 'Debug' ">Exe</OutputType>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<TargetFramework>net7.0-windows</TargetFramework>
<RootNamespace>UI_WinForms</RootNamespace>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>