From 5ad653b17f8ece1049f1f9d5e27e3ed7dbea2f1c Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Fri, 23 Mar 2018 10:32:35 +0100 Subject: [PATCH] Make package copyright more manageable This puts the copyright notice extenral to main project file and friendlier to eyes and version control management (fewer chances of merge conflicts). It also takes care of an annoying problem where Visual Studio would re-encoding the `©` to the copyright symbol whenever the project file would be opened in the IDE and which would show up as artificial changes ready for commit to the version control repository. --- .gitignore | 1 - MoreLinq.Test/MoreLinq.Test.csproj | 2 +- MoreLinq/MoreLinq.csproj | 5 +++-- bld/Copyright.props | 13 +++++++++++++ dotnet-netfx-mono.props => bld/DotNetSdkMono.props | 0 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 bld/Copyright.props rename dotnet-netfx-mono.props => bld/DotNetSdkMono.props (100%) diff --git a/.gitignore b/.gitignore index 5d3dd6633..bc5899dc0 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ x64/ x86/ build/ -bld/ [Bb]in/ [Oo]bj/ diff --git a/MoreLinq.Test/MoreLinq.Test.csproj b/MoreLinq.Test/MoreLinq.Test.csproj index f76c03a0e..4a599e037 100644 --- a/MoreLinq.Test/MoreLinq.Test.csproj +++ b/MoreLinq.Test/MoreLinq.Test.csproj @@ -1,6 +1,6 @@  - + MoreLinq.Test diff --git a/MoreLinq/MoreLinq.csproj b/MoreLinq/MoreLinq.csproj index c4a47c648..7413ae51c 100644 --- a/MoreLinq/MoreLinq.csproj +++ b/MoreLinq/MoreLinq.csproj @@ -1,6 +1,7 @@  - + + MoreLINQ @@ -99,7 +100,7 @@ - ZipShortest $([System.Text.RegularExpressions.Regex]::Replace($(Description), `\s+`, ` `).Trim().Replace(` - `, `, `).Replace(`:,`, `:`)) - © 2008 Jonathan Skeet. Portions © 2009 Atif Aziz, Chris Ammerman, Konrad Rudolph. Portions © 2010 Johannes Rudolph, Leopold Bushkin. Portions © 2015 Felipe Sateler, “sholland”. Portions © 2016 Andreas Gullberg Larsen, Leandro F. Vieira (leandromoh). Portions © 2017 Jonas Nyrup (jnyrup). Portions © Microsoft. All rights reserved. + $([System.Text.RegularExpressions.Regex]::Replace($(Copyright), `\s+`, ` `).Trim()) MoreLINQ en-US 3.0.0 diff --git a/bld/Copyright.props b/bld/Copyright.props new file mode 100644 index 000000000..62e21672d --- /dev/null +++ b/bld/Copyright.props @@ -0,0 +1,13 @@ + + + + © 2008 Jonathan Skeet. + Portions © 2009 Atif Aziz, Chris Ammerman, Konrad Rudolph. + Portions © 2010 Johannes Rudolph, Leopold Bushkin. + Portions © 2015 Felipe Sateler, “sholland”. + Portions © 2016 Andreas Gullberg Larsen, Leandro F. Vieira (leandromoh). + Portions © 2017 Jonas Nyrup (jnyrup). + Portions © Microsoft. All rights reserved. + + + diff --git a/dotnet-netfx-mono.props b/bld/DotNetSdkMono.props similarity index 100% rename from dotnet-netfx-mono.props rename to bld/DotNetSdkMono.props