Skip to content

Commit

Permalink
Merge pull request #5013 from dnnsoftware/v9.11.0/dependabot/nuget/Mi…
Browse files Browse the repository at this point in the history
…crosoft.Build.Tasks.Git-1.1.1-21503f6eac1c057a38fb5d4cb08de04e5eb22a11

v9.11.0 Bump Microsoft.Build.Tasks.Git from 1.0.0 to 1.1.1
  • Loading branch information
valadas authored Feb 16, 2022
2 parents c44f3f6 + 1089853 commit 7254af8
Show file tree
Hide file tree
Showing 65 changed files with 2,202 additions and 2,167 deletions.
19 changes: 9 additions & 10 deletions Build/Build.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net4.8</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PackAsTool>true</PackAsTool>
<!-- Make sure start same folder .NET Core CLI and Visual Studio -->
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
Expand All @@ -14,21 +14,20 @@
<AdditionalFiles Include="..\stylecop.json" Link="stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Cake.BuildSystems.Module" Version="3.0.3" />
<PackageReference Include="Cake.FileHelpers" Version="4.0.1" />
<PackageReference Include="Cake.Frosting" Version="1.2.0" />
<PackageReference Include="Cake.Frosting.Issues.Recipe" Version="1.3.1" />
<PackageReference Include="Cake.Git" Version="1.1.0" />
<PackageReference Include="Cake.Issues" Version="1.0.0" />
<PackageReference Include="Cake.BuildSystems.Module" Version="4.1.0" />
<PackageReference Include="Cake.FileHelpers" Version="5.0.0" />
<PackageReference Include="Cake.Frosting" Version="2.0.0" />
<PackageReference Include="Cake.Git" Version="2.0.0" />
<PackageReference Include="Cake.Issues" Version="2.0.0-beta0001" />
<PackageReference Include="Cake.Issues.MsBuild" Version="1.0.0" />
<PackageReference Include="Cake.Json" Version="6.0.1" />
<PackageReference Include="Cake.XdtTransform" Version="1.0.0" />
<PackageReference Include="Cake.Json" Version="7.0.1" />
<PackageReference Include="Cake.XdtTransform" Version="2.0.0" />
<PackageReference Include="Dnn.CakeUtils" Version="2.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions Build/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ namespace DotNetNuke.Build
using Cake.Common.IO.Paths;
using Cake.Common.Tools.GitVersion;
using Cake.Core;
using Cake.Frosting.Issues.Recipe;
using Cake.Frosting;
using Cake.Json;

/// <inheritdoc/>
public class Context : IssuesContext
public class Context : FrostingContext
{
/// <summary>Initializes a new instance of the <see cref="Context"/> class.</summary>
/// <param name="context">The base context.</param>
public Context(ICakeContext context)
: base(context, RepositoryInfoProviderType.CakeGit)
: base(context)
{
try
{
Expand Down
2 changes: 0 additions & 2 deletions Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace DotNetNuke.Build

using Cake.AzurePipelines.Module;
using Cake.Frosting;
using Cake.Frosting.Issues.Recipe;

/// <summary>Runs the build process.</summary>
public class Program
Expand All @@ -34,7 +33,6 @@ public static int Main(string[] args)
.InstallTool(new Uri("nuget:?package=NUnit3TestAdapter&version=" + NUnit3TestAdapterVersion))
.InstallTool(new Uri("nuget:?package=NuGet.CommandLine&version=5.10.0"))
.InstallTool(new Uri("nuget:?package=Cake.Issues.MsBuild&version=1.0.0"))
.AddAssembly(Assembly.GetAssembly(typeof(IssuesTask)))
.Run(args);
}
}
Expand Down
37 changes: 31 additions & 6 deletions Build/Tasks/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Build.Tasks
{
using System.Collections.Generic;

using Cake.Common.Build;
using Cake.Common.Build.AzurePipelines.Data;
using Cake.Common.IO;
using Cake.Common.Tools.MSBuild;
using Cake.Core.IO;
using Cake.Frosting;
using Cake.Frosting.Issues.Recipe;
using Cake.Issues;
using Cake.Issues.MsBuild;

using DotNetNuke.Build;

/// <summary>A cake task to compile the platform.</summary>
[Dependency(typeof(CleanWebsite))]
[Dependency(typeof(RestoreNuGetPackages))]
[IsDependeeOf(typeof(ReadIssuesTask))]
[IsDependentOn(typeof(CleanWebsite))]
[IsDependentOn(typeof(RestoreNuGetPackages))]
public sealed class Build : FrostingTask<Context>
{
/// <inheritdoc/>
Expand All @@ -36,8 +41,28 @@ public override void Run(Context context)
}
finally
{
context.Parameters.InputFiles.AddMsBuildBinaryLogFile(cleanLog);
context.Parameters.InputFiles.AddMsBuildBinaryLogFile(buildLog);
var issues = context.ReadIssues(
new List<IIssueProvider>
{
new MsBuildIssuesProvider(
context.Log,
new MsBuildIssuesSettings(cleanLog, context.MsBuildBinaryLogFileFormat())),
new MsBuildIssuesProvider(
context.Log,
new MsBuildIssuesSettings(buildLog, context.MsBuildBinaryLogFileFormat())),
},
context.Directory("."));

foreach (var issue in issues)
{
context.AzurePipelines()
.Commands.WriteWarning(
issue.MessageText,
new AzurePipelinesMessageData
{
SourcePath = issue.AffectedFileRelativePath?.FullPath, LineNumber = issue.Line,
});
}
}
}

Expand Down
22 changes: 10 additions & 12 deletions Build/Tasks/BuildAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@
namespace DotNetNuke.Build.Tasks
{
using Cake.Frosting;
using Cake.Frosting.Issues.Recipe;

/// <summary>A cake task to compile the platform and create all of the packages.</summary>
/// <remarks>This is the task run during CI.</remarks>
[Dependency(typeof(CleanArtifacts))]
[Dependency(typeof(UpdateDnnManifests))]
[Dependency(typeof(GenerateSecurityAnalyzerChecksums))]
[Dependency(typeof(SetPackageVersions))]
[Dependency(typeof(CreateInstall))]
[Dependency(typeof(CreateUpgrade))]
[Dependency(typeof(CreateDeploy))]
[Dependency(typeof(CreateSymbols))]
[Dependency(typeof(CreateNugetPackages))]
[Dependency(typeof(GeneratePackagesChecksums))]
[IsDependentOn(typeof(IssuesTask))]
[IsDependentOn(typeof(CleanArtifacts))]
[IsDependentOn(typeof(UpdateDnnManifests))]
[IsDependentOn(typeof(GenerateSecurityAnalyzerChecksums))]
[IsDependentOn(typeof(SetPackageVersions))]
[IsDependentOn(typeof(CreateInstall))]
[IsDependentOn(typeof(CreateUpgrade))]
[IsDependentOn(typeof(CreateDeploy))]
[IsDependentOn(typeof(CreateSymbols))]
[IsDependentOn(typeof(CreateNugetPackages))]
[IsDependentOn(typeof(GeneratePackagesChecksums))]
public sealed class BuildAll : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion Build/Tasks/BuildServerSetVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace DotNetNuke.Build.Tasks
using Cake.Frosting;

/// <summary>A cake task to update the build number in CI.</summary>
[Dependency(typeof(SetVersion))]
[IsDependentOn(typeof(SetVersion))]
public sealed class BuildServerSetVersion : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
10 changes: 5 additions & 5 deletions Build/Tasks/BuildToTempFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace DotNetNuke.Build.Tasks
using Cake.Frosting;

/// <summary>A cake task to build the platform.</summary>
[Dependency(typeof(SetVersion))]
[Dependency(typeof(UpdateDnnManifests))]
[Dependency(typeof(ResetDatabase))]
[Dependency(typeof(PreparePackaging))]
[Dependency(typeof(OtherPackages))]
[IsDependentOn(typeof(SetVersion))]
[IsDependentOn(typeof(UpdateDnnManifests))]
[IsDependentOn(typeof(ResetDatabase))]
[IsDependentOn(typeof(PreparePackaging))]
[IsDependentOn(typeof(OtherPackages))]
public sealed class BuildToTempFolder : FrostingTask<Context>
{
}
Expand Down
14 changes: 7 additions & 7 deletions Build/Tasks/BuildWithDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ namespace DotNetNuke.Build.Tasks
using Cake.Frosting;

/// <summary>A cake task to compile the platform and create a localdb database.</summary>
[Dependency(typeof(CleanArtifacts))]
[Dependency(typeof(UpdateDnnManifests))]
[Dependency(typeof(CreateInstall))]
[Dependency(typeof(CreateUpgrade))]
[Dependency(typeof(CreateDeploy))]
[Dependency(typeof(CreateSymbols))]
[Dependency(typeof(CreateDatabase))]
[IsDependentOn(typeof(CleanArtifacts))]
[IsDependentOn(typeof(UpdateDnnManifests))]
[IsDependentOn(typeof(CreateInstall))]
[IsDependentOn(typeof(CreateUpgrade))]
[IsDependentOn(typeof(CreateDeploy))]
[IsDependentOn(typeof(CreateSymbols))]
[IsDependentOn(typeof(CreateDatabase))]
public sealed class BuildWithDatabase : FrostingTask<Context>
{
}
Expand Down
4 changes: 2 additions & 2 deletions Build/Tasks/CopyWebsite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace DotNetNuke.Build.Tasks
using Cake.Frosting;

/// <summary>A cake task to copy the built website folder.</summary>
[Dependency(typeof(CleanWebsite))]
[Dependency(typeof(GenerateSqlDataProvider))]
[IsDependentOn(typeof(CleanWebsite))]
[IsDependentOn(typeof(GenerateSqlDataProvider))]
public sealed class CopyWebsite : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
4 changes: 2 additions & 2 deletions Build/Tasks/CreateDeploy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace DotNetNuke.Build.Tasks
using Dnn.CakeUtils;

/// <summary>A cake task to crete the Deploy package.</summary>
[Dependency(typeof(PreparePackaging))]
[Dependency(typeof(OtherPackages))]
[IsDependentOn(typeof(PreparePackaging))]
[IsDependentOn(typeof(OtherPackages))]
public sealed class CreateDeploy : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
4 changes: 2 additions & 2 deletions Build/Tasks/CreateInstall.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace DotNetNuke.Build.Tasks
using Dnn.CakeUtils;

/// <summary>A cake task to create the Install package.</summary>
[Dependency(typeof(PreparePackaging))]
[Dependency(typeof(OtherPackages))]
[IsDependentOn(typeof(PreparePackaging))]
[IsDependentOn(typeof(OtherPackages))]
public sealed class CreateInstall : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion Build/Tasks/CreateNugetPackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace DotNetNuke.Build.Tasks
using DotNetNuke.Build;

/// <summary>A cake task to create the platform's NuGet packages.</summary>
[Dependency(typeof(PreparePackaging))]
[IsDependentOn(typeof(PreparePackaging))]
public sealed class CreateNugetPackages : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
4 changes: 2 additions & 2 deletions Build/Tasks/CreateSymbols.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ namespace DotNetNuke.Build.Tasks
using Dnn.CakeUtils;

/// <summary>A cake task to create the Symbols package.</summary>
[Dependency(typeof(PreparePackaging))]
[Dependency(typeof(OtherPackages))]
[IsDependentOn(typeof(PreparePackaging))]
[IsDependentOn(typeof(OtherPackages))]
public sealed class CreateSymbols : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
10 changes: 5 additions & 5 deletions Build/Tasks/CreateUpgrade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ namespace DotNetNuke.Build.Tasks
using Dnn.CakeUtils;

/// <summary>A cake task to create the Upgrade package.</summary>
[Dependency(typeof(PreparePackaging))]
[Dependency(typeof(OtherPackages))]
[Dependency(typeof(CreateInstall))] // This is to ensure CreateUpgrade runs last and not in parallel, can be removed when we get to v10 where the telerik workaround is no longer needed
[Dependency(typeof(CreateSymbols))] // This is to ensure CreateUpgrade runs last and not in parallel, can be removed when we get to v10 where the telerik workaround is no longer needed
[Dependency(typeof(CreateDeploy))] // This is to ensure CreateUpgrade runs last and not in parallel, can be removed when we get to v10 where the telerik workaround is no longer needed
[IsDependentOn(typeof(PreparePackaging))]
[IsDependentOn(typeof(OtherPackages))]
[IsDependentOn(typeof(CreateInstall))] // This is to ensure CreateUpgrade runs last and not in parallel, can be removed when we get to v10 where the telerik workaround is no longer needed
[IsDependentOn(typeof(CreateSymbols))] // This is to ensure CreateUpgrade runs last and not in parallel, can be removed when we get to v10 where the telerik workaround is no longer needed
[IsDependentOn(typeof(CreateDeploy))] // This is to ensure CreateUpgrade runs last and not in parallel, can be removed when we get to v10 where the telerik workaround is no longer needed
public sealed class CreateUpgrade : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
12 changes: 6 additions & 6 deletions Build/Tasks/Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ namespace DotNetNuke.Build.Tasks

/// <summary>A cake task to build the platform and create packages.</summary>
/// <remarks>This is the default Cake target if no target is supplied.</remarks>
[Dependency(typeof(CleanArtifacts))]
[Dependency(typeof(UpdateDnnManifests))]
[Dependency(typeof(CreateInstall))]
[Dependency(typeof(CreateUpgrade))]
[Dependency(typeof(CreateDeploy))]
[Dependency(typeof(CreateSymbols))]
[IsDependentOn(typeof(CleanArtifacts))]
[IsDependentOn(typeof(UpdateDnnManifests))]
[IsDependentOn(typeof(CreateInstall))]
[IsDependentOn(typeof(CreateUpgrade))]
[IsDependentOn(typeof(CreateDeploy))]
[IsDependentOn(typeof(CreateSymbols))]
public sealed class Default : FrostingTask<Context>
{
}
Expand Down
12 changes: 6 additions & 6 deletions Build/Tasks/GeneratePackagesChecksums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ namespace DotNetNuke.Build.Tasks
using Dnn.CakeUtils;

/// <summary>A cake task to generate a <c>checksums.md</c> file with the artifact checksums.</summary>
[Dependency(typeof(CleanArtifacts))]
[Dependency(typeof(UpdateDnnManifests))]
[Dependency(typeof(CreateInstall))]
[Dependency(typeof(CreateUpgrade))]
[Dependency(typeof(CreateDeploy))]
[Dependency(typeof(CreateSymbols))]
[IsDependentOn(typeof(CleanArtifacts))]
[IsDependentOn(typeof(UpdateDnnManifests))]
[IsDependentOn(typeof(CreateInstall))]
[IsDependentOn(typeof(CreateUpgrade))]
[IsDependentOn(typeof(CreateDeploy))]
[IsDependentOn(typeof(CreateSymbols))]
public sealed class GeneratePackagesChecksums : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion Build/Tasks/GenerateSecurityAnalyzerChecksums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace DotNetNuke.Build.Tasks
using Cake.Frosting;

/// <summary>A cake task to generate the <c>Default.aspx</c> checksum for the Security Analyzer.</summary>
[Dependency(typeof(SetVersion))]
[IsDependentOn(typeof(SetVersion))]
public sealed class GenerateSecurityAnalyzerChecksums : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion Build/Tasks/GenerateSqlDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace DotNetNuke.Build.Tasks
using Cake.Frosting;

/// <summary>A cake task to generate a SQL Data Provider script if it doesn't exist.</summary>
[Dependency(typeof(SetVersion))]
[IsDependentOn(typeof(SetVersion))]
public sealed class GenerateSqlDataProvider : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
12 changes: 6 additions & 6 deletions Build/Tasks/OtherPackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ namespace DotNetNuke.Build.Tasks
using Dnn.CakeUtils;

/// <summary>A cake task to include other 3rd party packages.</summary>
[Dependency(typeof(PackageNewtonsoft))]
[Dependency(typeof(PackageMailKit))]
[Dependency(typeof(PackageAspNetWebApi))]
[Dependency(typeof(PackageAspNetWebPages))]
[Dependency(typeof(PackageAspNetMvc))]
[Dependency(typeof(PackageMicrosoftGlobbing))]
[IsDependentOn(typeof(PackageNewtonsoft))]
[IsDependentOn(typeof(PackageMailKit))]
[IsDependentOn(typeof(PackageAspNetWebApi))]
[IsDependentOn(typeof(PackageAspNetWebPages))]
[IsDependentOn(typeof(PackageAspNetMvc))]
[IsDependentOn(typeof(PackageMicrosoftGlobbing))]
public sealed class OtherPackages : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
8 changes: 4 additions & 4 deletions Build/Tasks/PreparePackaging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ namespace DotNetNuke.Build.Tasks
using Cake.Json;

/// <summary>A cake task to prepare for packaging (by building the platform and copying files).</summary>
[Dependency(typeof(CopyWebsite))]
[Dependency(typeof(Build))]
[Dependency(typeof(CopyWebConfig))]
[Dependency(typeof(CopyWebsiteBinFolder))]
[IsDependentOn(typeof(CopyWebsite))]
[IsDependentOn(typeof(Build))]
[IsDependentOn(typeof(CopyWebConfig))]
[IsDependentOn(typeof(CopyWebsiteBinFolder))]
public sealed class PreparePackaging : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
6 changes: 3 additions & 3 deletions Build/Tasks/ResetDevSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace DotNetNuke.Build.Tasks
using Cake.Frosting;

/// <summary>A cake task to reset a local dev site.</summary>
[Dependency(typeof(BuildToTempFolder))]
[Dependency(typeof(CopyToDevSite))]
[Dependency(typeof(CopyWebConfigToDevSite))]
[IsDependentOn(typeof(BuildToTempFolder))]
[IsDependentOn(typeof(CopyToDevSite))]
[IsDependentOn(typeof(CopyWebConfigToDevSite))]
public sealed class ResetDevSite : FrostingTask<Context>
{
}
Expand Down
2 changes: 1 addition & 1 deletion Build/Tasks/RunUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace DotNetNuke.Build.Tasks

/// <summary>A cake task to run NUnit 3 tests.</summary>
/// <remarks>This task is not used (NUnit 3 is not used by DNN), you probably want <see cref="UnitTests"/>.</remarks>
[Dependency(typeof(Build))]
[IsDependentOn(typeof(Build))]
public sealed class RunUnitTests : FrostingTask<Context>
{
/// <inheritdoc/>
Expand Down
Loading

0 comments on commit 7254af8

Please # to comment.