From 4b934e09ab07b47518a097e4795c526711e3c827 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Fri, 27 Nov 2020 15:04:13 -0400 Subject: [PATCH 1/9] Update Cake.MinVer add-in to target Cake v1.0.0-rc0001 --- src/Cake.MinVer/Cake.MinVer.csproj | 5 +++-- src/Cake.MinVer/MinVerSettings.cs | 1 + test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj | 4 +--- test/Cake.MinVer.Tests/MinVerSettingsTests.cs | 4 +++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Cake.MinVer/Cake.MinVer.csproj b/src/Cake.MinVer/Cake.MinVer.csproj index 604001f..b6b9cd8 100644 --- a/src/Cake.MinVer/Cake.MinVer.csproj +++ b/src/Cake.MinVer/Cake.MinVer.csproj @@ -41,8 +41,9 @@ - - + + + diff --git a/src/Cake.MinVer/MinVerSettings.cs b/src/Cake.MinVer/MinVerSettings.cs index 94efb46..da0af56 100644 --- a/src/Cake.MinVer/MinVerSettings.cs +++ b/src/Cake.MinVer/MinVerSettings.cs @@ -125,6 +125,7 @@ public MinVerSettings Clone() NoWorkingDirectory = NoWorkingDirectory, ArgumentCustomization = ArgumentCustomization, EnvironmentVariables = EnvironmentVariables, + HandleExitCode = HandleExitCode, }; return clone; diff --git a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj index 4d9d9fd..b8c8a2f 100644 --- a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj +++ b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj @@ -6,9 +6,7 @@ - - - + diff --git a/test/Cake.MinVer.Tests/MinVerSettingsTests.cs b/test/Cake.MinVer.Tests/MinVerSettingsTests.cs index a4a3286..4e020d7 100644 --- a/test/Cake.MinVer.Tests/MinVerSettingsTests.cs +++ b/test/Cake.MinVer.Tests/MinVerSettingsTests.cs @@ -48,6 +48,7 @@ public void Should_Shallow_Clone_All_Properties() NoWorkingDirectory = true, ArgumentCustomization = s => s, EnvironmentVariables = new Dictionary { { "MINVERTESTVAR", "SOMEVALUE" } }, + HandleExitCode = i => false, }; var actual = expected.Clone(); @@ -70,6 +71,7 @@ public void Should_Shallow_Clone_All_Properties() actual.NoWorkingDirectory.Should().Be(expected.NoWorkingDirectory); actual.ArgumentCustomization.Should().Be(expected.ArgumentCustomization); actual.EnvironmentVariables.Should().BeEquivalentTo(expected.EnvironmentVariables); + actual.HandleExitCode.Should().BeEquivalentTo(expected.HandleExitCode); var properties = typeof(MinVerSettings) .GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy) @@ -77,7 +79,7 @@ public void Should_Shallow_Clone_All_Properties() .ToList(); // Sanity check & alarm to detect changes in properties that need to be considered in the cloning - properties.Should().HaveCount(17); + properties.Should().HaveCount(18); } } } From d462d51900eca2e45a98e7687ba61be68238c102 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Tue, 1 Dec 2020 16:51:42 -0400 Subject: [PATCH 2/9] Add .NET 5 target --- global.json | 2 +- src/Cake.MinVer/Cake.MinVer.csproj | 2 +- test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/global.json b/global.json index e3bbb00..5f35d39 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { "allowPrerelease": false, - "version": "3.1.100", + "version": "5.0.100", "rollForward": "latestFeature" } } diff --git a/src/Cake.MinVer/Cake.MinVer.csproj b/src/Cake.MinVer/Cake.MinVer.csproj index b6b9cd8..2fdf3c8 100644 --- a/src/Cake.MinVer/Cake.MinVer.csproj +++ b/src/Cake.MinVer/Cake.MinVer.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + net5.0;netstandard2.0 Cake.MinVer Cake.MinVer diff --git a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj index b8c8a2f..66aee96 100644 --- a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj +++ b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5.0;netcoreapp3.1 false From 23c1e985297ae8284eb2459da8ddf606f0591d26 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Tue, 1 Dec 2020 16:57:07 -0400 Subject: [PATCH 3/9] Update test project dependencies to latest --- test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj index 66aee96..f4df8d4 100644 --- a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj +++ b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj @@ -8,10 +8,16 @@ - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + From a502d08392dd67eff87f0c6dc196ec80261f689e Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Wed, 2 Dec 2020 16:46:29 -0400 Subject: [PATCH 4/9] Make references to Cake.Core and Cake.Common private as per Cake's guidelines --- src/Cake.MinVer/Cake.MinVer.csproj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Cake.MinVer/Cake.MinVer.csproj b/src/Cake.MinVer/Cake.MinVer.csproj index eccbf96..7be52f8 100644 --- a/src/Cake.MinVer/Cake.MinVer.csproj +++ b/src/Cake.MinVer/Cake.MinVer.csproj @@ -41,9 +41,8 @@ - - - + + From 591fa2ec8b9dadfd1c74e8beece1253fc61e61e0 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Sun, 20 Dec 2020 15:10:41 -0400 Subject: [PATCH 5/9] Update Cake.MinVer add-in to target Cake v1.0.0-rc0002 --- src/Cake.MinVer/Cake.MinVer.csproj | 4 ++-- test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Cake.MinVer/Cake.MinVer.csproj b/src/Cake.MinVer/Cake.MinVer.csproj index 7be52f8..24d4f03 100644 --- a/src/Cake.MinVer/Cake.MinVer.csproj +++ b/src/Cake.MinVer/Cake.MinVer.csproj @@ -41,8 +41,8 @@ - - + + diff --git a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj index f4df8d4..e35ac1a 100644 --- a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj +++ b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj @@ -6,7 +6,8 @@ - + + From e0786c76d6f1d2ccb5fabb3135eb5e03fbd9ff77 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Sun, 7 Feb 2021 18:50:19 -0400 Subject: [PATCH 6/9] Update copyright year --- LICENSE | 2 +- src/Cake.MinVer/AddInInformation.cs | 4 +++- src/Cake.MinVer/Cake.MinVer.csproj | 2 +- src/Cake.MinVer/IMinVerGlobalTool.cs | 4 +++- src/Cake.MinVer/IMinVerLocalTool.cs | 4 +++- src/Cake.MinVer/IMinVerTool.cs | 4 +++- src/Cake.MinVer/MinVerAliases.cs | 4 +++- src/Cake.MinVer/MinVerAutoIncrement.cs | 4 +++- src/Cake.MinVer/MinVerEnvironmentVariables.cs | 4 +++- src/Cake.MinVer/MinVerGlobalTool.cs | 4 +++- src/Cake.MinVer/MinVerLocalTool.cs | 4 +++- src/Cake.MinVer/MinVerSettings.cs | 4 +++- src/Cake.MinVer/MinVerSettingsExtensions.cs | 4 +++- src/Cake.MinVer/MinVerTool.cs | 4 +++- src/Cake.MinVer/MinVerToolBase.cs | 4 +++- src/Cake.MinVer/MinVerVerbosity.cs | 4 +++- src/Cake.MinVer/MinVerVersion.cs | 4 +++- src/Cake.MinVer/Namespaces.cs | 4 +++- src/Cake.MinVer/Properties/InternalsVisibleTo.cs | 4 +++- src/Cake.MinVer/Utils/EnvironmentProvider.cs | 4 +++- src/Cake.MinVer/Utils/IEnvironmentProvider.cs | 4 +++- test/Cake.MinVer.Tests/MinVerSettingsExtensionsTests.cs | 4 +++- test/Cake.MinVer.Tests/MinVerSettingsTests.cs | 4 +++- test/Cake.MinVer.Tests/MinVerToolTests.cs | 4 +++- test/Cake.MinVer.Tests/MinVerVersionTests.cs | 4 +++- test/Cake.MinVer.Tests/Support/MinVerGlobalToolFixture.cs | 4 +++- test/Cake.MinVer.Tests/Support/MinVerLocalToolFixture.cs | 4 +++- test/Cake.MinVer.Tests/Support/MinVerToolContext.cs | 4 +++- test/Cake.MinVer.Tests/Support/MinVerToolFixture.cs | 4 +++- test/Cake.MinVer.Tests/Support/MinVerToolFixtureBase.cs | 4 +++- test/Cake.MinVer.Tests/Support/MinVerToolFixtureResult.cs | 4 +++- test/Cake.MinVer.Tests/Support/MinVerToolOutputs.cs | 4 +++- test/Cake.MinVer.Tests/Support/XUnitLogger.cs | 4 +++- test/Cake.MinVer.Tests/Utils/EnvironmentProviderTests.cs | 4 +++- 34 files changed, 98 insertions(+), 34 deletions(-) diff --git a/LICENSE b/LICENSE index 9a1e74a..c60976f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 C. Augusto Proiete & Contributors +Copyright (c) 2020-2021 C. Augusto Proiete & Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/Cake.MinVer/AddInInformation.cs b/src/Cake.MinVer/AddInInformation.cs index 98b85da..00024e8 100644 --- a/src/Cake.MinVer/AddInInformation.cs +++ b/src/Cake.MinVer/AddInInformation.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Reflection; using Cake.Core.Diagnostics; diff --git a/src/Cake.MinVer/Cake.MinVer.csproj b/src/Cake.MinVer/Cake.MinVer.csproj index 52dd911..3f82621 100644 --- a/src/Cake.MinVer/Cake.MinVer.csproj +++ b/src/Cake.MinVer/Cake.MinVer.csproj @@ -29,7 +29,7 @@ C. Augusto Proiete & Contributors augustoproiete.net Cake add-in that makes MinVer available as a tool in Cake. - Copyright 2020 C. Augusto Proiete & Contributors - Provided under the MIT License + Copyright 2020-2021 C. Augusto Proiete & Contributors - Provided under the MIT License cake;minver;cake-addin;cake-build;cake-contrib MIT images\icon.png diff --git a/src/Cake.MinVer/IMinVerGlobalTool.cs b/src/Cake.MinVer/IMinVerGlobalTool.cs index b8fc4ad..344f00a 100644 --- a/src/Cake.MinVer/IMinVerGlobalTool.cs +++ b/src/Cake.MinVer/IMinVerGlobalTool.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion namespace Cake.MinVer { diff --git a/src/Cake.MinVer/IMinVerLocalTool.cs b/src/Cake.MinVer/IMinVerLocalTool.cs index 3979c2e..6dcbe8a 100644 --- a/src/Cake.MinVer/IMinVerLocalTool.cs +++ b/src/Cake.MinVer/IMinVerLocalTool.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion namespace Cake.MinVer { diff --git a/src/Cake.MinVer/IMinVerTool.cs b/src/Cake.MinVer/IMinVerTool.cs index 8f58581..e5d52a0 100644 --- a/src/Cake.MinVer/IMinVerTool.cs +++ b/src/Cake.MinVer/IMinVerTool.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion namespace Cake.MinVer { diff --git a/src/Cake.MinVer/MinVerAliases.cs b/src/Cake.MinVer/MinVerAliases.cs index 74e1cfc..33eace9 100644 --- a/src/Cake.MinVer/MinVerAliases.cs +++ b/src/Cake.MinVer/MinVerAliases.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using Cake.Core; diff --git a/src/Cake.MinVer/MinVerAutoIncrement.cs b/src/Cake.MinVer/MinVerAutoIncrement.cs index 2cb73f1..9ccca7f 100644 --- a/src/Cake.MinVer/MinVerAutoIncrement.cs +++ b/src/Cake.MinVer/MinVerAutoIncrement.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion namespace Cake.MinVer { diff --git a/src/Cake.MinVer/MinVerEnvironmentVariables.cs b/src/Cake.MinVer/MinVerEnvironmentVariables.cs index 1a3e29c..0c43379 100644 --- a/src/Cake.MinVer/MinVerEnvironmentVariables.cs +++ b/src/Cake.MinVer/MinVerEnvironmentVariables.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion namespace Cake.MinVer { diff --git a/src/Cake.MinVer/MinVerGlobalTool.cs b/src/Cake.MinVer/MinVerGlobalTool.cs index 5892674..8545823 100644 --- a/src/Cake.MinVer/MinVerGlobalTool.cs +++ b/src/Cake.MinVer/MinVerGlobalTool.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Collections.Generic; using Cake.Core; diff --git a/src/Cake.MinVer/MinVerLocalTool.cs b/src/Cake.MinVer/MinVerLocalTool.cs index 174649e..d025074 100644 --- a/src/Cake.MinVer/MinVerLocalTool.cs +++ b/src/Cake.MinVer/MinVerLocalTool.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using Cake.Core; using Cake.Core.Diagnostics; diff --git a/src/Cake.MinVer/MinVerSettings.cs b/src/Cake.MinVer/MinVerSettings.cs index 000d7f1..3057fb5 100644 --- a/src/Cake.MinVer/MinVerSettings.cs +++ b/src/Cake.MinVer/MinVerSettings.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using Cake.Common.Tools.DotNetCore; diff --git a/src/Cake.MinVer/MinVerSettingsExtensions.cs b/src/Cake.MinVer/MinVerSettingsExtensions.cs index 6383588..07ccbda 100644 --- a/src/Cake.MinVer/MinVerSettingsExtensions.cs +++ b/src/Cake.MinVer/MinVerSettingsExtensions.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.ComponentModel; diff --git a/src/Cake.MinVer/MinVerTool.cs b/src/Cake.MinVer/MinVerTool.cs index 9e14878..f388029 100644 --- a/src/Cake.MinVer/MinVerTool.cs +++ b/src/Cake.MinVer/MinVerTool.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.Globalization; diff --git a/src/Cake.MinVer/MinVerToolBase.cs b/src/Cake.MinVer/MinVerToolBase.cs index 48a6cbd..cb4aa43 100644 --- a/src/Cake.MinVer/MinVerToolBase.cs +++ b/src/Cake.MinVer/MinVerToolBase.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.Collections.Generic; diff --git a/src/Cake.MinVer/MinVerVerbosity.cs b/src/Cake.MinVer/MinVerVerbosity.cs index 177e79e..a80dc21 100644 --- a/src/Cake.MinVer/MinVerVerbosity.cs +++ b/src/Cake.MinVer/MinVerVerbosity.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion namespace Cake.MinVer { diff --git a/src/Cake.MinVer/MinVerVersion.cs b/src/Cake.MinVer/MinVerVersion.cs index 7c3ef86..e9c6bc5 100644 --- a/src/Cake.MinVer/MinVerVersion.cs +++ b/src/Cake.MinVer/MinVerVersion.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.Collections.Generic; diff --git a/src/Cake.MinVer/Namespaces.cs b/src/Cake.MinVer/Namespaces.cs index 729d554..207f3aa 100644 --- a/src/Cake.MinVer/Namespaces.cs +++ b/src/Cake.MinVer/Namespaces.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Runtime.CompilerServices; diff --git a/src/Cake.MinVer/Properties/InternalsVisibleTo.cs b/src/Cake.MinVer/Properties/InternalsVisibleTo.cs index 4b622e7..6864a62 100644 --- a/src/Cake.MinVer/Properties/InternalsVisibleTo.cs +++ b/src/Cake.MinVer/Properties/InternalsVisibleTo.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Runtime.CompilerServices; diff --git a/src/Cake.MinVer/Utils/EnvironmentProvider.cs b/src/Cake.MinVer/Utils/EnvironmentProvider.cs index d20b8b6..7d48dd4 100644 --- a/src/Cake.MinVer/Utils/EnvironmentProvider.cs +++ b/src/Cake.MinVer/Utils/EnvironmentProvider.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.Collections.Generic; diff --git a/src/Cake.MinVer/Utils/IEnvironmentProvider.cs b/src/Cake.MinVer/Utils/IEnvironmentProvider.cs index b10ba3f..ca47a13 100644 --- a/src/Cake.MinVer/Utils/IEnvironmentProvider.cs +++ b/src/Cake.MinVer/Utils/IEnvironmentProvider.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Collections.Generic; using Cake.Core.IO; diff --git a/test/Cake.MinVer.Tests/MinVerSettingsExtensionsTests.cs b/test/Cake.MinVer.Tests/MinVerSettingsExtensionsTests.cs index 0b9abaa..3c47a8a 100644 --- a/test/Cake.MinVer.Tests/MinVerSettingsExtensionsTests.cs +++ b/test/Cake.MinVer.Tests/MinVerSettingsExtensionsTests.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using FluentAssertions; using Xunit; diff --git a/test/Cake.MinVer.Tests/MinVerSettingsTests.cs b/test/Cake.MinVer.Tests/MinVerSettingsTests.cs index 4f9bf9d..ff32f9f 100644 --- a/test/Cake.MinVer.Tests/MinVerSettingsTests.cs +++ b/test/Cake.MinVer.Tests/MinVerSettingsTests.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.Collections.Generic; diff --git a/test/Cake.MinVer.Tests/MinVerToolTests.cs b/test/Cake.MinVer.Tests/MinVerToolTests.cs index 1f1d2b8..80ac3dd 100644 --- a/test/Cake.MinVer.Tests/MinVerToolTests.cs +++ b/test/Cake.MinVer.Tests/MinVerToolTests.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using FluentAssertions; diff --git a/test/Cake.MinVer.Tests/MinVerVersionTests.cs b/test/Cake.MinVer.Tests/MinVerVersionTests.cs index adf41e0..c453647 100644 --- a/test/Cake.MinVer.Tests/MinVerVersionTests.cs +++ b/test/Cake.MinVer.Tests/MinVerVersionTests.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using FluentAssertions; diff --git a/test/Cake.MinVer.Tests/Support/MinVerGlobalToolFixture.cs b/test/Cake.MinVer.Tests/Support/MinVerGlobalToolFixture.cs index cb58d06..bad14f7 100644 --- a/test/Cake.MinVer.Tests/Support/MinVerGlobalToolFixture.cs +++ b/test/Cake.MinVer.Tests/Support/MinVerGlobalToolFixture.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using Cake.Core.IO; diff --git a/test/Cake.MinVer.Tests/Support/MinVerLocalToolFixture.cs b/test/Cake.MinVer.Tests/Support/MinVerLocalToolFixture.cs index 108681b..d0858ea 100644 --- a/test/Cake.MinVer.Tests/Support/MinVerLocalToolFixture.cs +++ b/test/Cake.MinVer.Tests/Support/MinVerLocalToolFixture.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using Cake.Core.IO; diff --git a/test/Cake.MinVer.Tests/Support/MinVerToolContext.cs b/test/Cake.MinVer.Tests/Support/MinVerToolContext.cs index 3b9287d..7e0fe37 100644 --- a/test/Cake.MinVer.Tests/Support/MinVerToolContext.cs +++ b/test/Cake.MinVer.Tests/Support/MinVerToolContext.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Threading; diff --git a/test/Cake.MinVer.Tests/Support/MinVerToolFixture.cs b/test/Cake.MinVer.Tests/Support/MinVerToolFixture.cs index 6f22748..f94bbf7 100644 --- a/test/Cake.MinVer.Tests/Support/MinVerToolFixture.cs +++ b/test/Cake.MinVer.Tests/Support/MinVerToolFixture.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.Linq; diff --git a/test/Cake.MinVer.Tests/Support/MinVerToolFixtureBase.cs b/test/Cake.MinVer.Tests/Support/MinVerToolFixtureBase.cs index 2fe84a9..d8d3640 100644 --- a/test/Cake.MinVer.Tests/Support/MinVerToolFixtureBase.cs +++ b/test/Cake.MinVer.Tests/Support/MinVerToolFixtureBase.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using System.Collections.Generic; diff --git a/test/Cake.MinVer.Tests/Support/MinVerToolFixtureResult.cs b/test/Cake.MinVer.Tests/Support/MinVerToolFixtureResult.cs index a9b1e75..5e3f19b 100644 --- a/test/Cake.MinVer.Tests/Support/MinVerToolFixtureResult.cs +++ b/test/Cake.MinVer.Tests/Support/MinVerToolFixtureResult.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using Cake.Core.IO; using Cake.Testing.Fixtures; diff --git a/test/Cake.MinVer.Tests/Support/MinVerToolOutputs.cs b/test/Cake.MinVer.Tests/Support/MinVerToolOutputs.cs index 8adf4fc..03df956 100644 --- a/test/Cake.MinVer.Tests/Support/MinVerToolOutputs.cs +++ b/test/Cake.MinVer.Tests/Support/MinVerToolOutputs.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Linq; diff --git a/test/Cake.MinVer.Tests/Support/XUnitLogger.cs b/test/Cake.MinVer.Tests/Support/XUnitLogger.cs index 4bc3623..cd538b9 100644 --- a/test/Cake.MinVer.Tests/Support/XUnitLogger.cs +++ b/test/Cake.MinVer.Tests/Support/XUnitLogger.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System; using Xunit.Abstractions; diff --git a/test/Cake.MinVer.Tests/Utils/EnvironmentProviderTests.cs b/test/Cake.MinVer.Tests/Utils/EnvironmentProviderTests.cs index 8b96148..4442387 100644 --- a/test/Cake.MinVer.Tests/Utils/EnvironmentProviderTests.cs +++ b/test/Cake.MinVer.Tests/Utils/EnvironmentProviderTests.cs @@ -1,4 +1,4 @@ -// Copyright 2020 C. Augusto Proiete & Contributors +#region Copyright 2020-2021 C. Augusto Proiete & Contributors // // Licensed under the MIT (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,8 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// +#endregion using System.Collections.Generic; using FluentAssertions; From 6d1d206d0559ebb95ce0ba6d85441e3e08fc5217 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Sun, 7 Feb 2021 18:51:37 -0400 Subject: [PATCH 7/9] Update Cake.MinVer add-in to target Cake v1.0.0 --- src/Cake.MinVer/Cake.MinVer.csproj | 4 ++-- test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cake.MinVer/Cake.MinVer.csproj b/src/Cake.MinVer/Cake.MinVer.csproj index 3f82621..4d15d1d 100644 --- a/src/Cake.MinVer/Cake.MinVer.csproj +++ b/src/Cake.MinVer/Cake.MinVer.csproj @@ -41,8 +41,8 @@ - - + + diff --git a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj index e35ac1a..516a95c 100644 --- a/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj +++ b/test/Cake.MinVer.Tests/Cake.MinVer.Tests.csproj @@ -6,8 +6,8 @@ - - + + From 4b6304eeb60675ca26ec1ab1e9fcfaf00bb944f8 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Sun, 7 Feb 2021 18:58:44 -0400 Subject: [PATCH 8/9] Bump MinVer CLI to v2.4.0 --- .config/dotnet-tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 0baa52b..a711a6b 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -9,7 +9,7 @@ ] }, "minver-cli": { - "version": "2.3.1", + "version": "2.4.0", "commands": [ "minver" ] From 79c5e2ad34ebdad3355edd4d008eec8b4a10d665 Mon Sep 17 00:00:00 2001 From: "C. Augusto Proiete" Date: Sun, 7 Feb 2021 18:59:23 -0400 Subject: [PATCH 9/9] Bump Cake.Tool to v1.0.0 --- .config/dotnet-tools.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index a711a6b..7d8ac9e 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "cake.tool": { - "version": "0.38.5", + "version": "1.0.0", "commands": [ "dotnet-cake" ]