From a9b3c36f77e9dc8632ae380dec99839d12bb5f1b Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 15 Feb 2019 21:40:25 +0100 Subject: [PATCH] Build.ps1 - Automated more tasks relating to updating CefSharp version and copyright year (#2640) * build.ps1 - Write version to CefSharp.shfbproj * build.ps1 - Specify UTF-8 as encoding when reading * build.ps1 - Save files as UTF-8 without BOM * build.ps1 - Update copyright year on compiled files * build.ps1 - Update version in appveyor.yml * Removed copyright year from the nuspec files * Updated editorconfig for ps1 files * Apply changes from build.ps1 * LICENSE - Removed year --- .editorconfig | 12 +++-- CefSharp.BrowserSubprocess.Core/Resource.rc | 2 +- CefSharp.Core/Resource.rc | 2 +- CefSharp.shfbproj | 8 ++-- CefSharp/Properties/AssemblyInfo.cs | 2 +- LICENSE | 2 +- NuGet/CefSharp.Common.nuspec | 2 +- NuGet/CefSharp.OffScreen.nuspec | 2 +- NuGet/CefSharp.WinForms.nuspec | 2 +- NuGet/CefSharp.Wpf.nuspec | 2 +- build.ps1 | 53 ++++++++++++++++++--- 11 files changed, 66 insertions(+), 23 deletions(-) diff --git a/.editorconfig b/.editorconfig index 545b96e28..1a480ad05 100644 --- a/.editorconfig +++ b/.editorconfig @@ -18,14 +18,18 @@ charset = utf-8 end_of_line = crlf trim_trailing_whitespace = true +# Powershell files (build.ps1) +[*.ps1] +charset = utf-8-bom + # Xml config files [*.{props,targets,config,nuspec,manifest}] -indent_size = 2 +indent_size = 2 # C++ Files [*.{cpp,h,in}] -curly_bracket_next_line = true -indent_brace_style = Allman +curly_bracket_next_line = true +indent_brace_style = Allman [*.cs] # Capitalization styles @@ -56,7 +60,7 @@ dotnet_style_qualification_for_property = dotnet_style_qualification_for_method = false : suggestion dotnet_style_qualification_for_event = false : suggestion -# Prefer using var +# Prefer using var csharp_style_var_for_built_in_types = true : none csharp_style_var_when_type_is_apparent = true : suggestion csharp_style_var_elsewhere = true : suggestion diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 4017d4dba..e7b322568 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -17,7 +17,7 @@ BEGIN BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" VALUE "FileVersion", "71.0.0" - VALUE "LegalCopyright", "Copyright © 2010-2018 The CefSharp Authors" + VALUE "LegalCopyright", "Copyright © 2019 The CefSharp Authors" VALUE "ProductName", "CefSharp" VALUE "ProductVersion", "71.0.0" END diff --git a/CefSharp.Core/Resource.rc b/CefSharp.Core/Resource.rc index 00b0443d8..9e0bf131c 100644 --- a/CefSharp.Core/Resource.rc +++ b/CefSharp.Core/Resource.rc @@ -17,7 +17,7 @@ BEGIN BEGIN VALUE "FileDescription", "CefSharp.Core" VALUE "FileVersion", "71.0.0" - VALUE "LegalCopyright", "Copyright © 2010-2018 The CefSharp Authors" + VALUE "LegalCopyright", "Copyright © 2019 The CefSharp Authors" VALUE "ProductName", "CefSharp" VALUE "ProductVersion", "71.0.0" END diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index c74e3e049..1d8710123 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -1,4 +1,4 @@ - +