Skip to content

Commit

Permalink
Update to latest dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Oct 26, 2024
1 parent ef09956 commit 02eb62b
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.11" />
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/BlazorWebApp/BlazorWebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.10" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/FactorioTools/FactorioTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
</ItemGroup>

<ItemGroup Condition="'$(EnableVisualizer)' == 'true'">
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.3" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta15" />
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.5" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.4" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions src/FactorioTools/OilField/Visualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static void Save(SquareGrid grid, string path, IReadOnlyCollection<IPoin

if (pairs.Add((a, b)))
{
c.DrawLines(Color.Chocolate, thickness: 4, new PointF(a.X * CellSize + CellSize / 2, a.Y * CellSize + CellSize / 2), new PointF(b.X * CellSize + CellSize / 2, b.Y * CellSize + CellSize / 2));
c.DrawLine(Color.Chocolate, thickness: 4, new PointF(a.X * CellSize + CellSize / 2, a.Y * CellSize + CellSize / 2), new PointF(b.X * CellSize + CellSize / 2, b.Y * CellSize + CellSize / 2));
}
}
}
Expand All @@ -105,7 +105,7 @@ private static void Save(SquareGrid grid, string path, IReadOnlyCollection<IPoin

foreach (var e in edges)
{
c.DrawLines(Color.Red.WithAlpha(1f), thickness: 5, ConvertPoint(e.P), ConvertPoint(e.Q));
c.DrawLine(Color.Red.WithAlpha(1f), thickness: 5, ConvertPoint(e.P), ConvertPoint(e.Q));
}

// Draw the grid
Expand All @@ -114,17 +114,17 @@ private static void Save(SquareGrid grid, string path, IReadOnlyCollection<IPoin
const int thickness = 4;
const int thickness2 = 0;

c.DrawLines(gridColor, thickness, new PointF(grid.Width * CellSize - 1, 0), new PointF(grid.Width * CellSize - 1, grid.Height * CellSize - 1));
c.DrawLines(gridColor, thickness, new PointF(grid.Width * CellSize - 1, grid.Height * CellSize - 1), new PointF(0, grid.Height * CellSize - 1));
c.DrawLine(gridColor, thickness, new PointF(grid.Width * CellSize - 1, 0), new PointF(grid.Width * CellSize - 1, grid.Height * CellSize - 1));
c.DrawLine(gridColor, thickness, new PointF(grid.Width * CellSize - 1, grid.Height * CellSize - 1), new PointF(0, grid.Height * CellSize - 1));

for (var x = 0; x < grid.Width * CellSize; x += 10 * CellSize)
{
c.DrawLines(gridColor, thickness, new PointF(x - thickness2, 0 - thickness2), new PointF(x - thickness2, grid.Height * CellSize - 1 - thickness2));
c.DrawLine(gridColor, thickness, new PointF(x - thickness2, 0 - thickness2), new PointF(x - thickness2, grid.Height * CellSize - 1 - thickness2));
}

for (var y = 0; y < grid.Height * CellSize; y += 10 * CellSize)
{
c.DrawLines(gridColor, thickness, new PointF(grid.Width * CellSize - 1 - thickness2, y - thickness2), new PointF(0 - thickness2, y - thickness2));
c.DrawLine(gridColor, thickness, new PointF(grid.Width * CellSize - 1 - thickness2, y - thickness2), new PointF(0 - thickness2, y - thickness2));
}
});

Expand Down
4 changes: 2 additions & 2 deletions src/WebApp/WebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.10" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/WebApp/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down Expand Up @@ -109,7 +109,7 @@
},
"responses": {
"200": {
"description": "Success",
"description": "OK",
"content": {
"text/plain": {
"schema": {
Expand Down
12 changes: 6 additions & 6 deletions test/FactorioTools.Test/FactorioTools.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Verify.DiffPlex" Version="2.3.0" />
<PackageReference Include="Verify.Xunit" Version="22.11.1" />
<PackageReference Include="xunit" Version="2.6.4" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Verify.DiffPlex" Version="3.1.2" />
<PackageReference Include="Verify.Xunit" Version="27.1.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
1 change: 0 additions & 1 deletion test/FactorioTools.Test/OilField/BasePlannerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Knapcode.FactorioTools.OilField;

[UsesVerify]
public class BasePlannerTest : BaseTest
{
public static IEnumerable<object[]> AllPipeStrategiesTestData => OilFieldOptions
Expand Down

0 comments on commit 02eb62b

Please sign in to comment.