Skip to content

Commit

Permalink
Upgrade packages and to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
DSPaul committed Nov 29, 2024
1 parent 43ff7f1 commit 06db137
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net9.0-windows7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
26 changes: 13 additions & 13 deletions src/COMPASS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<RootNamespace>COMPASS</RootNamespace>
<AssemblyName>COMPASS</AssemblyName>
Expand Down Expand Up @@ -65,23 +65,23 @@
<PackageReference Include="DotNetSeleniumExtras.WaitHelpers" Version="3.11.0" />
<PackageReference Include="FuzzySharp" Version="2.0.2" />
<PackageReference Include="gong-wpf-dragdrop" Version="3.2.1" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.67" />
<PackageReference Include="itext7" Version="8.0.5" />
<PackageReference Include="itext7.bouncy-castle-adapter" Version="8.0.5" />
<PackageReference Include="log4net" Version="2.0.17" />
<PackageReference Include="Magick.NET-Q8-AnyCPU" Version="14.0.0" />
<PackageReference Include="Magick.NET.SystemDrawing" Version="8.0.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.71" />
<PackageReference Include="itext7" Version="9.0.0" />
<PackageReference Include="itext7.bouncy-castle-adapter" Version="9.0.0" />
<PackageReference Include="log4net" Version="3.0.3" />
<PackageReference Include="Magick.NET-Q8-AnyCPU" Version="14.2.0" />
<PackageReference Include="Magick.NET.SystemDrawing" Version="8.0.2" />
<PackageReference Include="MaterialDesignThemes" Version="4.9.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Ookii.Dialogs.Wpf" Version="5.0.1" />
<PackageReference Include="OpenCvSharp4.Extensions" Version="4.10.0.20240616" />
<PackageReference Include="OpenCvSharp4.Windows" Version="4.10.0.20240616" />
<PackageReference Include="OpenCvSharp4.Extensions" Version="4.10.0.20241108" />
<PackageReference Include="OpenCvSharp4.Windows" Version="4.10.0.20241108" />
<PackageReference Include="ScrapySharp" Version="3.0.0" />
<PackageReference Include="Selenium.Support" Version="4.25.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.25.0" />
<PackageReference Include="Selenium.Support" Version="4.27.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.27.0" />
<PackageReference Include="SharpCompress" Version="0.38.0" />
<PackageReference Include="System.Drawing.Common" Version="8.0.10" />
<PackageReference Include="VirtualizingWrapPanel" Version="2.0.11" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
<PackageReference Include="VirtualizingWrapPanel" Version="2.1.0" />
<PackageReference Include="WpfAnimatedGif" Version="2.0.2" />
<PackageReference Include="ZXing.Net" Version="0.16.9" />
<PackageReference Include="ZXing.Net.Bindings.Windows.Compatibility" Version="0.16.12" />
Expand Down
2 changes: 1 addition & 1 deletion src/Services/CoverService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public static IMagickImage GetCroppedScreenShot(IWebDriver driver, Point locatio
var mf = new MagickImageFactory();
using var img = mf.Create(ss.AsByteArray);
img.Resize(3000, 3000); //same size as headless window
return img.Clone(location.X, location.Y, (uint)size.Width, (uint)size.Height);
return img.CloneArea(location.X, location.Y, (uint)size.Width, (uint)size.Height);
}
}
}

0 comments on commit 06db137

Please sign in to comment.