From a6b3318eec5369ac0b0d3943fdaa6c15497eca98 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Sat, 23 Nov 2024 21:37:12 -0700 Subject: [PATCH] net9.0 --- .vscode/launch.json | 40 +++++++++---------- BlurHash.Core/BlurHash.Core.csproj | 4 +- .../BlurHash.System.Drawing.Common.csproj | 2 +- BlurHash/BlurHash.csproj | 6 +-- Compare/Compare.csproj | 14 +++---- Copy-Distinct/Copy-Distinct.csproj | 10 ++--- Date-Group/Date-Group.csproj | 14 +++---- Delete-By-Distinct/Delete-By-Distinct.csproj | 14 +++---- Delete-By-Relative/Delete-By-Relative.csproj | 14 +++---- Distance/Distance.csproj | 6 +-- Drag-Drop-Explorer/Drag-Drop-Explorer.csproj | 8 ++-- Drag-Drop-Explorer/Program.cs | 2 +- Drag-Drop-Move/Drag-Drop-Move.csproj | 8 ++-- Drag-Drop-Move/Program.cs | 2 +- Drag-Drop-Search/Drag-Drop-Search.csproj | 8 ++-- Drag-Drop-Search/Program.cs | 2 +- .../Drag-Drop-Set-Property-Item.csproj | 8 ++-- Drag-Drop-Set-Property-Item/Program.cs | 2 +- Duplicate-Search/Duplicate-Search.csproj | 14 +++---- Face/Face.csproj | 6 +-- Face/Models/_D_Face.cs | 4 +- FaceParts/FaceParts.csproj | 6 +-- .../FaceRecognitionDotNet.csproj | 4 +- Instance/DlibDotNet.cs | 3 +- Instance/Instance.csproj | 14 +++---- Map/Map.csproj | 6 +-- Metadata-Query/Metadata-Query.csproj | 12 +++--- Metadata/Metadata.csproj | 6 +-- Mirror-Length/Mirror-Length.csproj | 12 +++--- Move-By-Id/Move-By-Id.csproj | 10 ++--- .../Offset-Date-Time-Original.csproj | 12 +++--- PhotoPrism/PhotoPrism.csproj | 6 +-- PrepareForOld/PrepareForOld.csproj | 14 +++---- Property-Compare/Property-Compare.csproj | 6 +-- Property/Property.csproj | 8 ++-- Rename/Rename.csproj | 12 +++--- Resize/Models/_C_Resize.cs | 9 +++-- Resize/Resize.csproj | 6 +-- Set-Created-Date/Set-Created-Date.csproj | 10 ++--- Shared/View-by-Distance.Shared.csproj | 6 +-- Tests/Tests.csproj | 14 +++---- .../TestsWithFaceRecognitionDotNet.csproj | 14 +++---- .../UnitTestFace.cs | 4 +- ThumbHash/ThumbHash.csproj | 8 ++-- 44 files changed, 196 insertions(+), 194 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f67cb06..bbf2db0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Compare/bin/Debug/net8.0/win-x64/Compare.dll", + "program": "${workspaceFolder}/Compare/bin/Debug/net9.0/win-x64/Compare.dll", "args": [ "s" ], @@ -28,7 +28,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Copy-Distinct/bin/Debug/net8.0/win-x64/Copy-Distinct.dll", + "program": "${workspaceFolder}/Copy-Distinct/bin/Debug/net9.0/win-x64/Copy-Distinct.dll", "args": [], "env": { "ASPNETCORE_ENVIRONMENT": "Development" @@ -43,7 +43,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Duplicate-Search/bin/Debug/net8.0/win-x64/Duplicate-Search.dll", + "program": "${workspaceFolder}/Duplicate-Search/bin/Debug/net9.0/win-x64/Duplicate-Search.dll", "args": [ "s" ], @@ -60,7 +60,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Date-Group/bin/Debug/net8.0/win-x64/Date-Group.dll", + "program": "${workspaceFolder}/Date-Group/bin/Debug/net9.0/win-x64/Date-Group.dll", "args": [ "s" ], @@ -77,7 +77,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Delete-By-Distinct/bin/Debug/net8.0/win-x64/Delete-By-Distinct.dll", + "program": "${workspaceFolder}/Delete-By-Distinct/bin/Debug/net9.0/win-x64/Delete-By-Distinct.dll", "args": [ "s" ], @@ -94,7 +94,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Delete-By-Relative/bin/Debug/net8.0/win-x64/Delete-By-Relative.dll", + "program": "${workspaceFolder}/Delete-By-Relative/bin/Debug/net9.0/win-x64/Delete-By-Relative.dll", "args": [ "s" ], @@ -111,7 +111,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Drag-Drop/bin/Debug/net8.0-windows/win-x64/Drag-Drop.dll", + "program": "${workspaceFolder}/Drag-Drop/bin/Debug/net9.0-windows/win-x64/Drag-Drop.dll", "args": [ "s" ], @@ -128,7 +128,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Drag-Drop-Explorer/bin/Debug/net8.0-windows/win-x64/Drag-Drop-Explorer.dll", + "program": "${workspaceFolder}/Drag-Drop-Explorer/bin/Debug/net9.0-windows/win-x64/Drag-Drop-Explorer.dll", "args": [ "s" ], @@ -145,7 +145,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Drag-Drop-Move/bin/Debug/net8.0-windows/win-x64/Drag-Drop-Move.dll", + "program": "${workspaceFolder}/Drag-Drop-Move/bin/Debug/net9.0-windows/win-x64/Drag-Drop-Move.dll", "args": [ "s" ], @@ -162,7 +162,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Drag-Drop-Set-Property-Item/bin/Debug/net8.0-windows/win-x64/Drag-Drop-Set-Property-Item.dll", + "program": "${workspaceFolder}/Drag-Drop-Set-Property-Item/bin/Debug/net9.0-windows/win-x64/Drag-Drop-Set-Property-Item.dll", "args": [ "s" ], @@ -179,7 +179,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Instance/bin/Debug/net8.0/win-x64/Instance.dll", + "program": "${workspaceFolder}/Instance/bin/Debug/net9.0/win-x64/Instance.dll", "args": [ "s" ], @@ -196,7 +196,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Mirror-Length/bin/Debug/net8.0/win-x64/Mirror-Length.dll", + "program": "${workspaceFolder}/Mirror-Length/bin/Debug/net9.0/win-x64/Mirror-Length.dll", "args": [], "env": { "ASPNETCORE_ENVIRONMENT": "Development" @@ -211,7 +211,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Metadata-Query/bin/Debug/net8.0/win-x64/Metadata-Query.dll", + "program": "${workspaceFolder}/Metadata-Query/bin/Debug/net9.0/win-x64/Metadata-Query.dll", "args": [ "s" ], @@ -228,7 +228,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Move-By-Id/bin/Debug/net8.0/win-x64/Move-By-Id.dll", + "program": "${workspaceFolder}/Move-By-Id/bin/Debug/net9.0/win-x64/Move-By-Id.dll", "args": [ "s" ], @@ -245,7 +245,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Not-Copy-Copy/bin/Debug/net8.0/win-x64/Not-Copy-Copy.dll", + "program": "${workspaceFolder}/Not-Copy-Copy/bin/Debug/net9.0/win-x64/Not-Copy-Copy.dll", "args": [ "s" ], @@ -262,7 +262,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Offset-Date-Time-Original/bin/Debug/net8.0/win-x64/Offset-Date-Time-Original.dll", + "program": "${workspaceFolder}/Offset-Date-Time-Original/bin/Debug/net9.0/win-x64/Offset-Date-Time-Original.dll", "args": [ "s" ], @@ -279,7 +279,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/PrepareForOld/bin/Debug/net8.0/win-x64/PrepareForOld.dll", + "program": "${workspaceFolder}/PrepareForOld/bin/Debug/net9.0/win-x64/PrepareForOld.dll", "args": [ "s" ], @@ -296,7 +296,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Person/bin/Debug/net8.0/Person.dll", + "program": "${workspaceFolder}/Person/bin/Debug/net9.0/Person.dll", "args": [ "s" ], @@ -313,7 +313,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Rename/bin/Debug/net8.0/win-x64/Rename.dll", + "program": "${workspaceFolder}/Rename/bin/Debug/net9.0/win-x64/Rename.dll", "args": [ "s" ], @@ -330,7 +330,7 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/Set-Created-Date/bin/Debug/net8.0/win-x64/Set-Created-Date.dll", + "program": "${workspaceFolder}/Set-Created-Date/bin/Debug/net9.0/win-x64/Set-Created-Date.dll", "args": [ "s" ], diff --git a/BlurHash.Core/BlurHash.Core.csproj b/BlurHash.Core/BlurHash.Core.csproj index 4d0e21e..ffa9534 100644 --- a/BlurHash.Core/BlurHash.Core.csproj +++ b/BlurHash.Core/BlurHash.Core.csproj @@ -4,7 +4,7 @@ enable library win-x64 - net8.0 + net9.0 BlurHash.Core @@ -18,6 +18,6 @@ MIT - + \ No newline at end of file diff --git a/BlurHash.System.Drawing.Common/BlurHash.System.Drawing.Common.csproj b/BlurHash.System.Drawing.Common/BlurHash.System.Drawing.Common.csproj index b36ca32..79bd3d1 100644 --- a/BlurHash.System.Drawing.Common/BlurHash.System.Drawing.Common.csproj +++ b/BlurHash.System.Drawing.Common/BlurHash.System.Drawing.Common.csproj @@ -4,7 +4,7 @@ enable library win-x64 - net8.0 + net9.0 true diff --git a/BlurHash/BlurHash.csproj b/BlurHash/BlurHash.csproj index b720b72..fdea0f6 100644 --- a/BlurHash/BlurHash.csproj +++ b/BlurHash/BlurHash.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.BlurHash false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -34,7 +34,7 @@ - + diff --git a/Compare/Compare.csproj b/Compare/Compare.csproj index 83304ea..04c589a 100644 --- a/Compare/Compare.csproj +++ b/Compare/Compare.csproj @@ -4,12 +4,12 @@ enable Exe win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Compare false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -33,14 +33,14 @@ - - - - + + + + - + diff --git a/Copy-Distinct/Copy-Distinct.csproj b/Copy-Distinct/Copy-Distinct.csproj index a336f75..38b2393 100644 --- a/Copy-Distinct/Copy-Distinct.csproj +++ b/Copy-Distinct/Copy-Distinct.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 d862524f-2b48-4f47-b4c3-5a8615814ec2 Phares.View.by.Distance.Copy.Distinct false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,9 +35,9 @@ - - - + + + diff --git a/Date-Group/Date-Group.csproj b/Date-Group/Date-Group.csproj index 2e07f93..20780e3 100644 --- a/Date-Group/Date-Group.csproj +++ b/Date-Group/Date-Group.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 8004d966-1a9e-4545-a220-83f32b6a13e9 Phares.View.by.Distance.Date.Group false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -34,15 +34,15 @@ - - - - + + + + - + diff --git a/Delete-By-Distinct/Delete-By-Distinct.csproj b/Delete-By-Distinct/Delete-By-Distinct.csproj index 83cb966..3d4c601 100644 --- a/Delete-By-Distinct/Delete-By-Distinct.csproj +++ b/Delete-By-Distinct/Delete-By-Distinct.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 0589ecff-b296-48be-a3f7-7bf27f453975 Phares.View.by.Distance.Delete.By.Distinct false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -34,14 +34,14 @@ - - - - + + + + - + diff --git a/Delete-By-Relative/Delete-By-Relative.csproj b/Delete-By-Relative/Delete-By-Relative.csproj index 77e1668..140b5c8 100644 --- a/Delete-By-Relative/Delete-By-Relative.csproj +++ b/Delete-By-Relative/Delete-By-Relative.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 ead2e5ee-5f40-4151-bdb6-31d630d94f28 Phares.View.by.Distance.Delete.By.Relative false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -34,14 +34,14 @@ - - - - + + + + - + diff --git a/Distance/Distance.csproj b/Distance/Distance.csproj index dbdf0a5..3d69c87 100644 --- a/Distance/Distance.csproj +++ b/Distance/Distance.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Distance false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -36,7 +36,7 @@ - + diff --git a/Drag-Drop-Explorer/Drag-Drop-Explorer.csproj b/Drag-Drop-Explorer/Drag-Drop-Explorer.csproj index 96577f9..ed861b0 100644 --- a/Drag-Drop-Explorer/Drag-Drop-Explorer.csproj +++ b/Drag-Drop-Explorer/Drag-Drop-Explorer.csproj @@ -4,7 +4,7 @@ enable WinExe win-x64 - net8.0-windows + net9.0-windows true @@ -26,9 +26,9 @@ - - - + + + diff --git a/Drag-Drop-Explorer/Program.cs b/Drag-Drop-Explorer/Program.cs index a2fd7fc..3a8d3c2 100644 --- a/Drag-Drop-Explorer/Program.cs +++ b/Drag-Drop-Explorer/Program.cs @@ -8,7 +8,7 @@ public class Program [STAThread] private static void Main() { - ApplicationConfiguration.Initialize(); + // ApplicationConfiguration.Initialize(); Application.Run(new DragDropExplorer()); } diff --git a/Drag-Drop-Move/Drag-Drop-Move.csproj b/Drag-Drop-Move/Drag-Drop-Move.csproj index c0b6233..67d4201 100644 --- a/Drag-Drop-Move/Drag-Drop-Move.csproj +++ b/Drag-Drop-Move/Drag-Drop-Move.csproj @@ -4,7 +4,7 @@ enable WinExe win-x64 - net8.0-windows + net9.0-windows true @@ -26,9 +26,9 @@ - - - + + + diff --git a/Drag-Drop-Move/Program.cs b/Drag-Drop-Move/Program.cs index 8506512..db27d9c 100644 --- a/Drag-Drop-Move/Program.cs +++ b/Drag-Drop-Move/Program.cs @@ -8,7 +8,7 @@ public class Program [STAThread] private static void Main() { - ApplicationConfiguration.Initialize(); + // ApplicationConfiguration.Initialize(); Application.Run(new DragDropMove()); } diff --git a/Drag-Drop-Search/Drag-Drop-Search.csproj b/Drag-Drop-Search/Drag-Drop-Search.csproj index 9b052cc..962726f 100644 --- a/Drag-Drop-Search/Drag-Drop-Search.csproj +++ b/Drag-Drop-Search/Drag-Drop-Search.csproj @@ -4,7 +4,7 @@ enable WinExe win-x64 - net8.0-windows + net9.0-windows true 7b153e3d-672b-4f7a-888a-cb31645a2439 @@ -27,9 +27,9 @@ - - - + + + diff --git a/Drag-Drop-Search/Program.cs b/Drag-Drop-Search/Program.cs index 9475ece..81efa6b 100644 --- a/Drag-Drop-Search/Program.cs +++ b/Drag-Drop-Search/Program.cs @@ -10,7 +10,7 @@ public class Program [STAThread] private static void Main() { - ApplicationConfiguration.Initialize(); + // ApplicationConfiguration.Initialize(); Application.Run(new DragDropSearch()); } diff --git a/Drag-Drop-Set-Property-Item/Drag-Drop-Set-Property-Item.csproj b/Drag-Drop-Set-Property-Item/Drag-Drop-Set-Property-Item.csproj index 6fa300a..fb0a1ae 100644 --- a/Drag-Drop-Set-Property-Item/Drag-Drop-Set-Property-Item.csproj +++ b/Drag-Drop-Set-Property-Item/Drag-Drop-Set-Property-Item.csproj @@ -4,7 +4,7 @@ enable WinExe win-x64 - net8.0-windows + net9.0-windows true c64a15ed-0ba3-4378-8f80-0c19d0531747 @@ -27,9 +27,9 @@ - - - + + + diff --git a/Drag-Drop-Set-Property-Item/Program.cs b/Drag-Drop-Set-Property-Item/Program.cs index fac5c2e..dc3a9f4 100644 --- a/Drag-Drop-Set-Property-Item/Program.cs +++ b/Drag-Drop-Set-Property-Item/Program.cs @@ -8,7 +8,7 @@ public class Program [STAThread] private static void Main() { - ApplicationConfiguration.Initialize(); + // ApplicationConfiguration.Initialize(); Application.Run(new DragDropSetPropertyItem()); } diff --git a/Duplicate-Search/Duplicate-Search.csproj b/Duplicate-Search/Duplicate-Search.csproj index 074b576..8167759 100644 --- a/Duplicate-Search/Duplicate-Search.csproj +++ b/Duplicate-Search/Duplicate-Search.csproj @@ -4,12 +4,12 @@ enable Exe win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Duplicate-Search false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -33,14 +33,14 @@ - - - - + + + + - + diff --git a/Face/Face.csproj b/Face/Face.csproj index f557589..663490a 100644 --- a/Face/Face.csproj +++ b/Face/Face.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Face false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -33,7 +33,7 @@ - + diff --git a/Face/Models/_D_Face.cs b/Face/Models/_D_Face.cs index 08b6252..6839fef 100644 --- a/Face/Models/_D_Face.cs +++ b/Face/Models/_D_Face.cs @@ -112,8 +112,8 @@ public class D_Face : IFaceD (Model, PredictorModel, ModelParameter) result; Array array; Model? model = null; + array = Enum.GetValues(); PredictorModel? predictorModel = null; - array = Enum.GetValues(typeof(Model)); foreach (Model check in array) { if (modelName.Contains(check.ToString())) @@ -125,7 +125,7 @@ public class D_Face : IFaceD if (model is null) throw new Exception("Destination directory must have Model name!"); model = model.Value; - array = Enum.GetValues(typeof(PredictorModel)); + array = Enum.GetValues(); foreach (PredictorModel check in array) { if (predictorModelName.Contains(check.ToString())) diff --git a/FaceParts/FaceParts.csproj b/FaceParts/FaceParts.csproj index 5cf4557..45d7bd2 100644 --- a/FaceParts/FaceParts.csproj +++ b/FaceParts/FaceParts.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.FaceParts false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -33,7 +33,7 @@ - + diff --git a/FaceRecognitionDotNet/FaceRecognitionDotNet.csproj b/FaceRecognitionDotNet/FaceRecognitionDotNet.csproj index 99138da..3f32937 100644 --- a/FaceRecognitionDotNet/FaceRecognitionDotNet.csproj +++ b/FaceRecognitionDotNet/FaceRecognitionDotNet.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.FaceRecognitionDotNet false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true diff --git a/Instance/DlibDotNet.cs b/Instance/DlibDotNet.cs index 2f46589..82488a7 100644 --- a/Instance/DlibDotNet.cs +++ b/Instance/DlibDotNet.cs @@ -498,8 +498,7 @@ public partial class DlibDotNet : IDlibDotNet, IDisposable [ Path.Combine(rootDirectory, "Ancestry"), Path.Combine(rootDirectory, "Facebook"), - Path.Combine(rootDirectory, "LinkedIn"), - rootDirectory, + Path.Combine(rootDirectory, "LinkedIn") ]; foreach (string checkDirectory in checkDirectories) { diff --git a/Instance/Instance.csproj b/Instance/Instance.csproj index ce266c1..8153f86 100644 --- a/Instance/Instance.csproj +++ b/Instance/Instance.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 2999dda1-5329-4d9f-9d68-cccfabe0e47f Phares.View.by.Distance.Instance false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -34,12 +34,12 @@ - - - - + + + + - + diff --git a/Map/Map.csproj b/Map/Map.csproj index cd69efc..858a7a5 100644 --- a/Map/Map.csproj +++ b/Map/Map.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Map false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -37,7 +37,7 @@ - + diff --git a/Metadata-Query/Metadata-Query.csproj b/Metadata-Query/Metadata-Query.csproj index b55cd46..6039f8c 100644 --- a/Metadata-Query/Metadata-Query.csproj +++ b/Metadata-Query/Metadata-Query.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 f89b7242-dbb0-4349-b950-657eb8cf87ef Phares.View.by.Distance.Metadata.Query false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,10 +35,10 @@ - - - - + + + + diff --git a/Metadata/Metadata.csproj b/Metadata/Metadata.csproj index 5e8b3eb..5044e2a 100644 --- a/Metadata/Metadata.csproj +++ b/Metadata/Metadata.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Metadata false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -34,7 +34,7 @@ - + diff --git a/Mirror-Length/Mirror-Length.csproj b/Mirror-Length/Mirror-Length.csproj index 9babd4a..1e4a7f1 100644 --- a/Mirror-Length/Mirror-Length.csproj +++ b/Mirror-Length/Mirror-Length.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 fa06c6db-0226-42ca-8728-68b1e336184d Phares.View.by.Distance.Mirror.Length false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,10 +35,10 @@ - - - - + + + + diff --git a/Move-By-Id/Move-By-Id.csproj b/Move-By-Id/Move-By-Id.csproj index 4c18280..c559e69 100644 --- a/Move-By-Id/Move-By-Id.csproj +++ b/Move-By-Id/Move-By-Id.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 ce31220e-ef92-4e68-89c5-91b027a94dca Phares.View.by.Distance.Move.By.Id false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,9 +35,9 @@ - - - + + + diff --git a/Offset-Date-Time-Original/Offset-Date-Time-Original.csproj b/Offset-Date-Time-Original/Offset-Date-Time-Original.csproj index 54edde1..32a66ab 100644 --- a/Offset-Date-Time-Original/Offset-Date-Time-Original.csproj +++ b/Offset-Date-Time-Original/Offset-Date-Time-Original.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 ae069946-d0c0-4e4f-94f6-9c526e4ae4e7 Phares.View.by.Distance.Offset.Date.Time.Original false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,10 +35,10 @@ - - - - + + + + diff --git a/PhotoPrism/PhotoPrism.csproj b/PhotoPrism/PhotoPrism.csproj index f9bee2b..2b8eaac 100644 --- a/PhotoPrism/PhotoPrism.csproj +++ b/PhotoPrism/PhotoPrism.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.PhotoPrism false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -37,7 +37,7 @@ - + diff --git a/PrepareForOld/PrepareForOld.csproj b/PrepareForOld/PrepareForOld.csproj index cb18b67..b5c1c80 100644 --- a/PrepareForOld/PrepareForOld.csproj +++ b/PrepareForOld/PrepareForOld.csproj @@ -4,12 +4,12 @@ enable Exe win-x64 - net8.0 + net9.0 Phares.View.by.Distance.PrepareForOld false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -33,14 +33,14 @@ - + - + - - - + + + diff --git a/Property-Compare/Property-Compare.csproj b/Property-Compare/Property-Compare.csproj index 8060494..083271e 100644 --- a/Property-Compare/Property-Compare.csproj +++ b/Property-Compare/Property-Compare.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Property.Compare false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,7 +35,7 @@ - + diff --git a/Property/Property.csproj b/Property/Property.csproj index 6b7ab01..06cd186 100644 --- a/Property/Property.csproj +++ b/Property/Property.csproj @@ -4,12 +4,12 @@ enable library win-x64;linux-x64 - net8.0 + net9.0 Phares.View.by.Distance.Property false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -40,10 +40,10 @@ - + - + diff --git a/Rename/Rename.csproj b/Rename/Rename.csproj index aa197f1..5642e1d 100644 --- a/Rename/Rename.csproj +++ b/Rename/Rename.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 6e026d2f-9edf-4c6c-a042-162758114e9a Phares.View.by.Distance.Rename false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -34,11 +34,11 @@ - + - - - + + + diff --git a/Resize/Models/_C_Resize.cs b/Resize/Models/_C_Resize.cs index 40467e1..fac7589 100644 --- a/Resize/Models/_C_Resize.cs +++ b/Resize/Models/_C_Resize.cs @@ -98,7 +98,8 @@ public class C_Resize { (ImageCodecInfo, EncoderParameters, string) result; ImageFormat imageFormat = ImageFormat.Jpeg; - ImageCodecInfo imageCodecInfo = (from l in ImageCodecInfo.GetImageEncoders() where l.FormatID == imageFormat.Guid select l).First(); + ImageCodecInfo[] imageCodecInfoCollection = ImageCodecInfo.GetImageEncoders(); + ImageCodecInfo imageCodecInfo = (from l in imageCodecInfoCollection where l.FormatID == imageFormat.Guid select l).First(); EncoderParameters encoderParameters = new(1); encoderParameters.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 75L); if (string.IsNullOrEmpty(imageCodecInfo.FilenameExtension)) @@ -111,7 +112,8 @@ public class C_Resize { (ImageCodecInfo, EncoderParameters, string) result; ImageFormat imageFormat = ImageFormat.Png; - ImageCodecInfo imageCodecInfo = (from l in ImageCodecInfo.GetImageEncoders() where l.FormatID == imageFormat.Guid select l).First(); + ImageCodecInfo[] imageCodecInfoCollection = ImageCodecInfo.GetImageEncoders(); + ImageCodecInfo imageCodecInfo = (from l in imageCodecInfoCollection where l.FormatID == imageFormat.Guid select l).First(); EncoderParameters encoderParameters = new(1); encoderParameters.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 75L); if (string.IsNullOrEmpty(imageCodecInfo.FilenameExtension)) @@ -135,7 +137,8 @@ public class C_Resize ".tiff" => ImageFormat.Tiff, _ => throw new Exception(), }; - ImageCodecInfo imageCodecInfo = (from l in ImageCodecInfo.GetImageEncoders() where l.FormatID == imageFormat.Guid select l).First(); + ImageCodecInfo[] imageCodecInfoCollection = ImageCodecInfo.GetImageEncoders(); + ImageCodecInfo imageCodecInfo = (from l in imageCodecInfoCollection where l.FormatID == imageFormat.Guid select l).First(); EncoderParameters encoderParameters = new(1); // encoderParameters.Param[0] = New EncoderParameter(Encoder.Quality, CType(75L, Int32)) 'Default // encoderParameters.Param[0] = New EncoderParameter(Encoder.Quality, CType(95L, Int32)) 'Paint diff --git a/Resize/Resize.csproj b/Resize/Resize.csproj index 8122919..e83e07a 100644 --- a/Resize/Resize.csproj +++ b/Resize/Resize.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.Resize false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,7 +35,7 @@ - + diff --git a/Set-Created-Date/Set-Created-Date.csproj b/Set-Created-Date/Set-Created-Date.csproj index b99cc3f..567ff85 100644 --- a/Set-Created-Date/Set-Created-Date.csproj +++ b/Set-Created-Date/Set-Created-Date.csproj @@ -4,13 +4,13 @@ enable Exe win-x64 - net8.0 + net9.0 b3bbcc69-1439-4e86-9bbf-75c8e8839cc0 Phares.View.by.Distance.Set.Created.Date false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -35,9 +35,9 @@ - - - + + + diff --git a/Shared/View-by-Distance.Shared.csproj b/Shared/View-by-Distance.Shared.csproj index 2aadaa6..81a54b5 100644 --- a/Shared/View-by-Distance.Shared.csproj +++ b/Shared/View-by-Distance.Shared.csproj @@ -3,12 +3,12 @@ enable enable win-x64;linux-x64 - net8.0 + net9.0 Phares.View.by.Distance.Shared false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -33,6 +33,6 @@ - + \ No newline at end of file diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 295a2e7..7f29d28 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -4,7 +4,7 @@ false enable win-x64 - net8.0 + net9.0 e8c3d25d-9715-4b35-9010-1cdc74840190 @@ -29,12 +29,12 @@ - - - - - - + + + + + + diff --git a/TestsWithFaceRecognitionDotNet/TestsWithFaceRecognitionDotNet.csproj b/TestsWithFaceRecognitionDotNet/TestsWithFaceRecognitionDotNet.csproj index f1d19db..d447611 100644 --- a/TestsWithFaceRecognitionDotNet/TestsWithFaceRecognitionDotNet.csproj +++ b/TestsWithFaceRecognitionDotNet/TestsWithFaceRecognitionDotNet.csproj @@ -4,7 +4,7 @@ false enable win-x64 - net8.0 + net9.0 ecbdc76d-6037-4046-86a4-1a7626a3d342 @@ -28,12 +28,12 @@ - - - - - - + + + + + + diff --git a/TestsWithFaceRecognitionDotNet/UnitTestFace.cs b/TestsWithFaceRecognitionDotNet/UnitTestFace.cs index 740858b..0239063 100644 --- a/TestsWithFaceRecognitionDotNet/UnitTestFace.cs +++ b/TestsWithFaceRecognitionDotNet/UnitTestFace.cs @@ -101,8 +101,8 @@ public class UnitTestFace (Model, PredictorModel, ModelParameter) result; Array array; Model? model = null; + array = Enum.GetValues(); PredictorModel? predictorModel = null; - array = Enum.GetValues(typeof(Model)); foreach (Model check in array) { if (configuration.ModelName.Contains(check.ToString())) @@ -114,7 +114,7 @@ public class UnitTestFace if (model is null) throw new Exception("Destination directory must have Model name!"); model = model.Value; - array = Enum.GetValues(typeof(PredictorModel)); + array = Enum.GetValues(); foreach (PredictorModel check in array) { if (configuration.PredictorModelName.Contains(check.ToString())) diff --git a/ThumbHash/ThumbHash.csproj b/ThumbHash/ThumbHash.csproj index dfa88d9..9ba5abb 100644 --- a/ThumbHash/ThumbHash.csproj +++ b/ThumbHash/ThumbHash.csproj @@ -4,12 +4,12 @@ enable library win-x64 - net8.0 + net9.0 Phares.View.by.Distance.ThumbHash false - 8.0.101.1 + 9.0.100.1 Mike Phares Phares true @@ -33,9 +33,9 @@ - + - +