Skip to content

fix: BinaryFormatterSerialization warning #274

fix: BinaryFormatterSerialization warning

fix: BinaryFormatterSerialization warning #274

Triggered via push November 15, 2023 21:26
Status Failure
Total duration 5m 1s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 3 warnings
windows-latest
[xUnit.net 00:00:00.85] Nuke.GlobalTool.Tests.CakeConversionTests.Test(file: D:\a\nuke\nuke\source\Nuke.GlobalTool.Tests\cake-scripts\paths.cake) [FAIL]
windows-latest
[xUnit.net 00:00:00.87] Nuke.GlobalTool.Tests.CakeConversionTests.Test(file: D:\a\nuke\nuke\source\Nuke.GlobalTool.Tests\cake-scripts\targets.cake) [FAIL]
Nuke.GlobalTool.Tests.CakeConversionTests.Test
VerifyException : Directory: D:\a\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"); } }
Nuke.GlobalTool.Tests.CakeConversionTests.Test
VerifyException : Directory: D:\a\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(); }
windows-latest
[xUnit.net 00:00:01.05] Nuke.SourceGenerators.Tests.StronglyTypedSolutionGeneratorTest.Test [FAIL]
Nuke.SourceGenerators.Tests.StronglyTypedSolutionGeneratorTest.Test
VerifyException : Directory: D:\a\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; } } -
windows-latest
Target "Test" has thrown an exception
windows-latest
Process completed with exit code 1.
windows-latest
Attempting second-chance registration of MSBuild after RegisterDefaults failed
windows-latest
D:\a\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>' [D:\a\nuke\nuke\source\Nuke.SourceGenerators\Nuke.SourceGenerators.csproj]
windows-latest
D:\a\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>' [D:\a\nuke\nuke\source\Nuke.SourceGenerators\Nuke.SourceGenerators.csproj]