Moved to .NET 7

This commit is contained in:
tsommer committed 2023-02-12 14:07:30 +01:00
1 parent 945a6e303a
commit 9218085e33
6 files changed
+14 -13

No files matched your search

+6 -5
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>
@@ -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;
}
+1 -1
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,
}