From 24325d25359bcb9c790a387f72caa8ab55da862a Mon Sep 17 00:00:00 2001 From: tfarcraw <123211521@163.com> Date: Tue, 17 Nov 2026 23:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E6=96=87=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E7=A0=81=EF=BC=9A=E6=8A=8A=E7=BC=96=E8=BE=91=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=E8=A2=AB=E4=B8=A2=E6=8E=89=E7=9A=84=20UTF-8=20BOM=20?= =?UTF-8?q?=E5=92=8C=20LF=20=E8=A1=8C=E5=B0=BE=E5=BD=92=E4=B8=80=E5=9B=9E?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E7=BA=A6=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 本仓库的 .cs 都是 UTF-8 with BOM + CRLF。前面几个提交里,编辑工具把 App.xaml.cs、LoginModel.cs、VisionFunction.cs 首行的 BOM 掉了(表现为每个提交都多出一行无关的 -using/+using diff);新建的 TaskTool.cs、WorkerGuard.cs 及三个测试文件则是无 BOM 的 LF。 这里统一补回 BOM、行尾归一为 CRLF。改动只是编码,逐文件 diff 都只有首行一处,无代码变化。 --- PLCSharpWpf/App.xaml.cs | 2 +- PLCSharpWpf/Core/Prism/WorkerGuard.cs | 2 +- PLCSharpWpf/Core/Tools/TaskTool.cs | 2 +- PLCSharpWpf/VVMs/Authority/LoginModel.cs | 2 +- PLCSharpWpf/VVMs/Vision/VisionFunction.cs | 2 +- Tests/PLCSharp.Tests/TaskToolTests.cs | 2 +- Tests/PLCSharp.Tests/WorkerGuardTests.cs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/PLCSharpWpf/App.xaml.cs b/PLCSharpWpf/App.xaml.cs index 43de29d..006c0e6 100644 --- a/PLCSharpWpf/App.xaml.cs +++ b/PLCSharpWpf/App.xaml.cs @@ -1,4 +1,4 @@ -using DryIoc; +using DryIoc; using PLCSharp.Core.Prism; using PLCSharp.Models; using PLCSharp.VVMs.Authority; diff --git a/PLCSharpWpf/Core/Prism/WorkerGuard.cs b/PLCSharpWpf/Core/Prism/WorkerGuard.cs index 881565c..d73b77e 100644 --- a/PLCSharpWpf/Core/Prism/WorkerGuard.cs +++ b/PLCSharpWpf/Core/Prism/WorkerGuard.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using System.ComponentModel; namespace PLCSharp.Core.Prism diff --git a/PLCSharpWpf/Core/Tools/TaskTool.cs b/PLCSharpWpf/Core/Tools/TaskTool.cs index 25b769c..763f0f7 100644 --- a/PLCSharpWpf/Core/Tools/TaskTool.cs +++ b/PLCSharpWpf/Core/Tools/TaskTool.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using System.Threading; namespace PLCSharp.Core.Tools diff --git a/PLCSharpWpf/VVMs/Authority/LoginModel.cs b/PLCSharpWpf/VVMs/Authority/LoginModel.cs index 83aa048..be0f3c2 100644 --- a/PLCSharpWpf/VVMs/Authority/LoginModel.cs +++ b/PLCSharpWpf/VVMs/Authority/LoginModel.cs @@ -1,4 +1,4 @@ -using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; using PLCSharp.Core.Prism; using Prism.Commands; using Prism.Dialogs; diff --git a/PLCSharpWpf/VVMs/Vision/VisionFunction.cs b/PLCSharpWpf/VVMs/Vision/VisionFunction.cs index 71616a3..95c1903 100644 --- a/PLCSharpWpf/VVMs/Vision/VisionFunction.cs +++ b/PLCSharpWpf/VVMs/Vision/VisionFunction.cs @@ -1,4 +1,4 @@ -using OpenCvSharp; +using OpenCvSharp; using PLCSharp.Core.Common; using PLCSharp.Core.Prism; using PLCSharp.Core.Tools; diff --git a/Tests/PLCSharp.Tests/TaskToolTests.cs b/Tests/PLCSharp.Tests/TaskToolTests.cs index 7c031b9..e8fc225 100644 --- a/Tests/PLCSharp.Tests/TaskToolTests.cs +++ b/Tests/PLCSharp.Tests/TaskToolTests.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using PLCSharp.Core.Tools; using System.Diagnostics; diff --git a/Tests/PLCSharp.Tests/WorkerGuardTests.cs b/Tests/PLCSharp.Tests/WorkerGuardTests.cs index 58b91a5..bf95fc2 100644 --- a/Tests/PLCSharp.Tests/WorkerGuardTests.cs +++ b/Tests/PLCSharp.Tests/WorkerGuardTests.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using PLCSharp.Core.Prism; using System.ComponentModel;