Skip to content

Commit

Permalink
.NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Decimation committed Dec 20, 2024
1 parent 9074746 commit bfbc83e
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion SmartImage.Lib/Engines/Impl/Search/TraceMoeEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public string EpisodeString
string epStr = Episode is { } ? Episode is string s ? s : Episode.ToString() : string.Empty;

if (Episode is IEnumerable e && e is not string) {
var epList = e.CastToList()
var epList = e.Cast<object>()
.Select(x =>
{
var s1 = x.ToString();
Expand Down
46 changes: 23 additions & 23 deletions SmartImage.Lib/SmartImage.Lib.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>SmartImage.Lib</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Configurations>Debug;Release;Test;UnitTest</Configurations>
Expand Down Expand Up @@ -42,32 +42,32 @@
<PackageReference Include="AngleSharp.Io" Version="1.0.0" />
<PackageReference Include="AngleSharp.Js" Version="0.15.0" />
<PackageReference Include="AngleSharp.XPath" Version="2.0.4" />
<PackageReference Include="CliWrap" Version="3.6.7" />
<PackageReference Include="CliWrap" Version="3.7.0" />
<PackageReference Include="CoenM.ImageSharp.ImageHash" Version="1.3.6" />
<PackageReference Include="CommunityToolkit.Common" Version="8.3.2" />
<PackageReference Include="CommunityToolkit.Common" Version="8.4.0" />
<PackageReference Include="Flurl.Http" Version="4.0.2" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="17.8.8" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
<PackageReference Include="System.Runtime.Caching" Version="8.0.1" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="System.Runtime.Caching" Version="9.0.0" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
<PackageReference Include="Verify.Flurl" Version="1.0.0" />
</ItemGroup>

Expand All @@ -76,13 +76,13 @@
<HintPath>..\..\..\VSProjects\FlareSolverrSharp\src\FlareSolverrSharp\bin\Release\net8.0\FlareSolverrSharp.dll</HintPath>
</Reference>
<Reference Include="Kantan">
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net8.0\Kantan.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net9.0\Kantan.dll</HintPath>
</Reference>
<Reference Include="Kantan.Net">
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net8.0\Kantan.Net.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net9.0\Kantan.Net.dll</HintPath>
</Reference>
<Reference Include="Novus">
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net8.0\Novus.dll</HintPath>
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net9.0\Novus.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
38 changes: 19 additions & 19 deletions SmartImage.Rdx/SmartImage.Rdx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DefineConstants>JETBRAINS_ANNOTATIONS;TRACE</DefineConstants>
Expand Down Expand Up @@ -44,35 +44,35 @@
<Content Include="Icon.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.7" />
<PackageReference Include="CliWrap" Version="3.7.0" />
<PackageReference Include="CoenM.ImageSharp.ImageHash" Version="1.3.6" />
<PackageReference Include="CommunityToolkit.Common" Version="8.3.2" />
<PackageReference Include="CommunityToolkit.Common" Version="8.4.0" />
<PackageReference Include="Flurl.Http" Version="4.0.2" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="8.0.0-preview.7.23375.6" />
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="17.8.8" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
<PackageReference Include="Spectre.Console.Analyzer" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Spectre.Console.Cli" Version="0.49.1" />
<PackageReference Include="Spectre.Console.ImageSharp" Version="0.49.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
<PackageReference Include="Verify.Flurl" Version="1.0.0" />
</ItemGroup>

Expand All @@ -85,17 +85,17 @@
<HintPath>..\..\..\VSProjects\FlareSolverrSharp\src\FlareSolverrSharp\bin\Release\net8.0\FlareSolverrSharp.dll</HintPath>
</Reference>
<Reference Include="Kantan">
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net8.0\Kantan.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net9.0\Kantan.dll</HintPath>
</Reference>
<Reference Include="Kantan.Net">
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net8.0\Kantan.Net.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net9.0\Kantan.Net.dll</HintPath>
</Reference>
<Reference Include="Novus">
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net8.0\Novus.dll</HintPath>
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net9.0\Novus.dll</HintPath>
</Reference>
<!--
<Reference Include="Novus">
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net8.0\Novus.dll</HintPath>
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net9.0\Novus.dll</HintPath>
</Reference>
-->
</ItemGroup>
Expand Down
10 changes: 7 additions & 3 deletions SmartImage.UI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
using System.Reactive.Linq;
using System.Runtime;
using System.Runtime.Caching;
using ReactiveUI;
// using ReactiveUI;
using Brush = System.Drawing.Brush;
using Brushes = System.Windows.Media.Brushes;
using System.Buffers;
using System.Reflection;
using DynamicData;
// using DynamicData;
using SmartImage.Lib.Clients;
using SmartImage.UI.Controls;
using SmartImage.Lib.Images;
Expand Down Expand Up @@ -819,7 +819,11 @@ private static IEnumerable<ResultItem> Convert(SearchResult result)

private void ConvertAddResultItems(SearchResult result)
{
CurrentQuery.Results.AddRange(Convert(result));
var r = Convert(result);
foreach (ResultItem resultItem in r) {
CurrentQuery.Results.Add(resultItem);

}
}

#endregion
Expand Down
25 changes: 13 additions & 12 deletions SmartImage.UI/SmartImage.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<DefineConstants>JETBRAINS_ANNOTATIONS;TRACE</DefineConstants>
Expand Down Expand Up @@ -64,16 +64,17 @@

<ItemGroup>
<PackageReference Include="CoenM.ImageSharp.ImageHash" Version="1.3.6" />
<PackageReference Include="CommunityToolkit.Common" Version="8.3.2" />
<PackageReference Include="CommunityToolkit.Common" Version="8.4.0" />
<PackageReference Include="Flurl.Http" Version="4.0.2" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
<PackageReference Include="ReactiveUI.WPF" Version="20.1.63" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
<!-- <PackageReference Include="ReactiveUI.WPF" Version="20.1.63" /> -->
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
<PackageReference Include="System.Security.Cryptography.X509Certificates" Version="4.3.2" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
<PackageReference Include="Verify.Flurl" Version="1.0.0" />
</ItemGroup>

Expand All @@ -86,13 +87,13 @@
<HintPath>..\..\..\VSProjects\FlareSolverrSharp\src\FlareSolverrSharp\bin\Release\net8.0\FlareSolverrSharp.dll</HintPath>
</Reference>
<Reference Include="Kantan">
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net8.0\Kantan.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net9.0\Kantan.dll</HintPath>
</Reference>
<Reference Include="Kantan.Net">
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net8.0\Kantan.Net.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net9.0\Kantan.Net.dll</HintPath>
</Reference>
<Reference Include="Novus">
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net8.0\Novus.dll</HintPath>
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net9.0\Novus.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
9 changes: 2 additions & 7 deletions SmartImage.UI2/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ IDisposable PostOnMainLoopAsTimeout()
var composite = new CompositeDisposable(2);

object timeout = Application.MainLoop.AddTimeout(
dueTime,
() =>
dueTime, (cb) =>
{
composite.Add(action(this, state));

Expand All @@ -64,12 +63,8 @@ IDisposable PostOnMainLoopAsTimeout()

}

public class Item1
{


public class Item1 { }

}
public static void Main(string[] args)
{
Application.Init();
Expand Down
36 changes: 18 additions & 18 deletions SmartImage.UI2/SmartImage.UI2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Flurl.Http" Version="4.0.2" />
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" />
<PackageReference Include="ReactiveUI" Version="20.1.1" />
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" />
<PackageReference Include="ReactiveUI" Version="20.1.63" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
<PackageReference Include="Terminal.Gui" Version="1.17.1" />
<PackageReference Include="CliWrap" Version="3.6.6" />
<PackageReference Include="CliWrap" Version="3.7.0" />
<PackageReference Include="CoenM.ImageSharp.ImageHash" Version="1.3.6" />
<PackageReference Include="CommunityToolkit.Common" Version="8.3.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.7" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="CommunityToolkit.Common" Version="8.4.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="8.0.0-preview.7.23375.6" />
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="17.8.8" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />
</ItemGroup>

<ItemGroup>
Expand All @@ -36,13 +36,13 @@

<ItemGroup>
<Reference Include="Kantan">
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net8.0\Kantan.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan\bin\Release\net9.0\Kantan.dll</HintPath>
</Reference>
<Reference Include="Kantan.Net">
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net8.0\Kantan.Net.dll</HintPath>
<HintPath>..\..\..\VSProjects\Kantan\Kantan.Net\bin\Release\net9.0\Kantan.Net.dll</HintPath>
</Reference>
<Reference Include="Novus">
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net8.0\Novus.dll</HintPath>
<HintPath>..\..\..\VSProjects\Novus\Novus\bin\Release\net9.0\Novus.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down

0 comments on commit bfbc83e

Please sign in to comment.