fix: BinaryFormatterSerialization warning #77
Annotations
8 errors and 3 warnings
Run: Test, Pack, Publish
[xUnit.net 00:00:00.86] Nuke.GlobalTool.Tests.CakeConversionTests.Test(file: /home/runner/work/nuke/nuke/source/Nuke.GlobalTool.Tests/cake-scripts/paths.cake) [FAIL]
|
Run: Test, Pack, Publish
[xUnit.net 00:00:00.87] Nuke.GlobalTool.Tests.CakeConversionTests.Test(file: /home/runner/work/nuke/nuke/source/Nuke.GlobalTool.Tests/cake-scripts/targets.cake) [FAIL]
|
Run: Test, Pack, Publish
VerifyException : Directory: /home/runner/work/nuke/nuke/source/Nuke.GlobalTool.Tests/cake-scripts
NotEqual:
- Received: paths.received.cs
Verified: paths.verified.cs
FileContent:
NotEqual:
Received: paths.received.cs
Verified: paths.verified.cs
Compare Result:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Security.Cryptography.X509Certificates;
using System.Xml;
using Nuke.Common;
using Nuke.Common.Execution;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Nuke.Common.Tools.SignTool;
using Nuke.Common.Utilities.Collections;
using Nuke.Common;
using Nuke.Common;
using Nuke.Common.IO;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.IO;
using Nuke.Common.Tools.MSBuild;
using Nuke.Common.Tools.SignTool;
using Nuke.Common.Tools.NuGet;
using Nuke.Common.IO;
using Nuke.Common.IO;
using Nuke.Common;
using static Nuke.Common.ControlFlow;
using static Nuke.Common.Logger;
using static Nuke.Common.IO.CompressionTasks;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.Tools.MSBuild.MSBuildTasks;
using static Nuke.Common.Tools.SignTool.SignToolTasks;
using static Nuke.Common.Tools.NuGet.NuGetTasks;
using static Nuke.Common.IO.TextTasks;
using static Nuke.Common.IO.XmlTasks;
using static Nuke.Common.EnvironmentInfo;
class Build : NukeBuild
{
AbsolutePath LocalPackagesDir => RootDirectory / ".." / "LocalPackages";
+
AbsolutePath SourceFolder => RootDirectory / "source";
+
AbsolutePath PublishDir => RootDirectory / "publish";
+
AbsolutePath SignToolPath => RootDirectory / "certificates" / "signtool.exe";
+
private string Convert(AbsolutePath file)
{
file = (AbsolutePath)file;
CopyFile(RootDirectory / projectFile/ $"{projectFile}.nuspec", "nuspec");
}
private void NoConvert()
{
var nodes = doc.SelectNodes("Project/PropertyGroup/RuntimeIdentifiers");
var node = doc.SelectSingleNode("Project/PropertyGroup/RuntimeIdentifiers");
}
}
|
Run: Test, Pack, Publish
VerifyException : Directory: /home/runner/work/nuke/nuke/source/Nuke.GlobalTool.Tests/cake-scripts
NotEqual:
- Received: targets.received.cs
Verified: targets.verified.cs
FileContent:
NotEqual:
Received: targets.received.cs
Verified: targets.verified.cs
Compare Result:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Security.Cryptography.X509Certificates;
using System.Xml;
using Nuke.Common;
using Nuke.Common.Execution;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;
using Nuke.Common.Tools.SignTool;
using Nuke.Common.Utilities.Collections;
using Nuke.Common;
using Nuke.Common;
using Nuke.Common.IO;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.IO;
using Nuke.Common.Tools.MSBuild;
using Nuke.Common.Tools.SignTool;
using Nuke.Common.Tools.NuGet;
using Nuke.Common.IO;
using Nuke.Common.IO;
using Nuke.Common;
using static Nuke.Common.ControlFlow;
using static Nuke.Common.Logger;
using static Nuke.Common.IO.CompressionTasks;
using static Nuke.Common.Tools.DotNet.DotNetTasks;
using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.Tools.MSBuild.MSBuildTasks;
using static Nuke.Common.Tools.SignTool.SignToolTasks;
using static Nuke.Common.Tools.NuGet.NuGetTasks;
using static Nuke.Common.IO.TextTasks;
using static Nuke.Common.IO.XmlTasks;
using static Nuke.Common.EnvironmentInfo;
class Build : NukeBuild
{
Target A => _ => _
.Executes(() =>
{
System.Console.WriteLine();
});
+
Target B => _ => _
.DependsOn(A)
.DependentFor(A)
.Executes(() =>
{
System.Console.WriteLine();
});
+
Target C_1 => _ => _
.DependsOn(B)
.OnlyWhenStatic(() => staticCondition)
.OnlyWhenDynamic(() => dynamicCondition)
.ProceedAfterFailure();
}
|
Run: Test, Pack, Publish
[xUnit.net 00:00:01.05] Nuke.SourceGenerators.Tests.StronglyTypedSolutionGeneratorTest.Test [FAIL]
|
Run: Test, Pack, Publish
VerifyException : Directory: /home/runner/work/nuke/nuke/source/Nuke.SourceGenerators.Tests
NotEqual:
- Received: StronglyTypedSolutionGeneratorTest.Test#StronglyTypedSolutionGenerator.received.cs
Verified: StronglyTypedSolutionGeneratorTest.Test#StronglyTypedSolutionGenerator.verified.cs
FileContent:
NotEqual:
Received: StronglyTypedSolutionGeneratorTest.Test#StronglyTypedSolutionGenerator.received.cs
Verified: StronglyTypedSolutionGeneratorTest.Test#StronglyTypedSolutionGenerator.verified.cs
Compare Result:
//HintName: StronglyTypedSolutionGenerator.cs
/// <auto-generated/>
using Nuke.Common.ProjectModel;
internal class Solution : Nuke.Common.ProjectModel.Solution
{
private Nuke.Common.ProjectModel.Solution SolutionFolder => this;
public Project _build => SolutionFolder.GetProject("_build");
public Project Nuke_Common => SolutionFolder.GetProject("Nuke.Common");
public Project Nuke_Common_Tests => SolutionFolder.GetProject("Nuke.Common.Tests");
public Project Nuke_Tooling_Generator => SolutionFolder.GetProject("Nuke.Tooling.Generator");
public Project Nuke_GlobalTool => SolutionFolder.GetProject("Nuke.GlobalTool");
public Project Nuke_GlobalTool_Tests => SolutionFolder.GetProject("Nuke.GlobalTool.Tests");
public Project Nuke_MSBuildTasks => SolutionFolder.GetProject("Nuke.MSBuildTasks");
public Project Nuke_Components => SolutionFolder.GetProject("Nuke.Components");
public Project Nuke_SourceGenerators => SolutionFolder.GetProject("Nuke.SourceGenerators");
public Project Nuke_SourceGenerators_Tests => SolutionFolder.GetProject("Nuke.SourceGenerators.Tests");
public Project Nuke_Utilities => SolutionFolder.GetProject("Nuke.Utilities");
public Project Nuke_Utilities_Tests => SolutionFolder.GetProject("Nuke.Utilities.Tests");
public Project Nuke_Utilities_IO_Globbing => SolutionFolder.GetProject("Nuke.Utilities.IO.Globbing");
public Project Nuke_Utilities_Text_Json => SolutionFolder.GetProject("Nuke.Utilities.Text.Json");
public Project Nuke_Utilities_Net => SolutionFolder.GetProject("Nuke.Utilities.Net");
public Project Nuke_Tooling => SolutionFolder.GetProject("Nuke.Tooling");
public Project Nuke_Tooling_Tests => SolutionFolder.GetProject("Nuke.Tooling.Tests");
public Project Nuke_SolutionModel => SolutionFolder.GetProject("Nuke.SolutionModel");
public Project Nuke_SolutionModel_Tests => SolutionFolder.GetProject("Nuke.SolutionModel.Tests");
public Project Nuke_ProjectModel => SolutionFolder.GetProject("Nuke.ProjectModel");
public Project Nuke_ProjectModel_Tests => SolutionFolder.GetProject("Nuke.ProjectModel.Tests");
public Project Nuke_Build_Shared => SolutionFolder.GetProject("Nuke.Build.Shared");
public Project Nuke_Build => SolutionFolder.GetProject("Nuke.Build");
public Project Nuke_Build_Tests => SolutionFolder.GetProject("Nuke.Build.Tests");
public Project Nuke_Utilities_Text_Yaml => SolutionFolder.GetProject("Nuke.Utilities.Text.Yaml");
public Project Nuke_Utilities_IO_Compression => SolutionFolder.GetProject("Nuke.Utilities.IO.Compression");
public _misc misc => new(SolutionFolder.GetSolutionFolder("misc"));
+
internal class _misc
{
private SolutionFolder SolutionFolder { get; }
public _misc(SolutionFolder solutionFolder) => SolutionFolder = solutionFolder;
}
}
-
|
Run: Test, Pack, Publish
Target "Test" has thrown an exception
|
Run: Test, Pack, Publish
Process completed with exit code 255.
|
Run: Test, Pack, Publish
Attempting second-chance registration of MSBuild after RegisterDefaults failed
|
Run: Test, Pack, Publish
/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/StronglyTypedSolutionGenerator.cs(23,14): warning RS1036: 'Nuke.SourceGenerators.StronglyTypedSolutionGenerator': A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>' [/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/Nuke.SourceGenerators.csproj]
|
Run: Test, Pack, Publish
/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/StronglyTypedSolutionGenerator.cs(23,14): warning RS1036: 'Nuke.SourceGenerators.StronglyTypedSolutionGenerator': A project containing analyzers or source generators should specify the property '<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>' [/home/runner/work/nuke/nuke/source/Nuke.SourceGenerators/Nuke.SourceGenerators.csproj]
|
The logs for this run have expired and are no longer available.
Loading