From 383b9d0d18859162f78472ef8fcc9bc41e92ae06 Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Sun, 9 Aug 2020 22:48:50 +0100 Subject: [PATCH 1/2] Strip Unicode BOM --- src/3/System.Management.Automation-lib.csproj | 2 +- src/5/System.Management.Automation-lib.csproj | 2 +- .../TestSampleCmdletCommand.cs | 2 +- test/3/core/Class1.cs | 2 +- test/3/full/Class1.cs | 2 +- test/5/core/Class1.cs | 2 +- test/5/full/Class1.cs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/3/System.Management.Automation-lib.csproj b/src/3/System.Management.Automation-lib.csproj index c85d8ff..0bdc86c 100644 --- a/src/3/System.Management.Automation-lib.csproj +++ b/src/3/System.Management.Automation-lib.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;net451 True diff --git a/src/5/System.Management.Automation-lib.csproj b/src/5/System.Management.Automation-lib.csproj index 99337c6..b05d5a9 100644 --- a/src/5/System.Management.Automation-lib.csproj +++ b/src/5/System.Management.Automation-lib.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;net452 True diff --git a/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/TestSampleCmdletCommand.cs b/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/TestSampleCmdletCommand.cs index 9ccd89a..1a7ac60 100755 --- a/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/TestSampleCmdletCommand.cs +++ b/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/TestSampleCmdletCommand.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Management.Automation; using System.Management.Automation.Runspaces; diff --git a/test/3/core/Class1.cs b/test/3/core/Class1.cs index bb19baf..4c128ca 100644 --- a/test/3/core/Class1.cs +++ b/test/3/core/Class1.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Management.Automation; namespace PSStandard diff --git a/test/3/full/Class1.cs b/test/3/full/Class1.cs index bb19baf..4c128ca 100644 --- a/test/3/full/Class1.cs +++ b/test/3/full/Class1.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Management.Automation; namespace PSStandard diff --git a/test/5/core/Class1.cs b/test/5/core/Class1.cs index 6c8e388..397e936 100644 --- a/test/5/core/Class1.cs +++ b/test/5/core/Class1.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Management.Automation; using System.Management.Automation.Runspaces; diff --git a/test/5/full/Class1.cs b/test/5/full/Class1.cs index 6c8e388..397e936 100644 --- a/test/5/full/Class1.cs +++ b/test/5/full/Class1.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Management.Automation; using System.Management.Automation.Runspaces; From b435f8b6ca8b93e441b89ab2163beff512fea0b0 Mon Sep 17 00:00:00 2001 From: xtqqczze Date: Sun, 9 Aug 2020 23:53:27 +0100 Subject: [PATCH 2/2] Add .editorconfig file to specify charset --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..986aba0 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +root = true + +[*] +charset = utf-8 +insert_final_newline = true