Skip to content

ScriptAssemblyResolver logging should be at debug/diagnostic level #3681

Description

@gitfool

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

Cake runner

Cake .NET Tool

Cake version

1.3.0

Operating system

Windows

Operating system architecture

64-Bit

CI Server

GitHub Actions

What are you seeing?

This has been noisy for a little while but is now exacerbated by dotnet 6.0 which logs about even more unused assemblies:

========================================
PublishToS3
========================================
Executing task: PublishToS3
Resolving assembly 'Xamarin.Forms.Core, Culture=neutral, PublicKeyToken=null' using runtime installed at 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.0-rc.2.21480.5\'...
Exception occurred while resolving assembly Xamarin.Forms.Core: Could not load file or assembly 'Xamarin.Forms.Core, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Assembly 'Xamarin.Forms.Core, Culture=neutral, PublicKeyToken=null' not resolved
Resolving assembly 'UnityEngine.CoreModule, Culture=neutral, PublicKeyToken=null' using runtime installed at 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.0-rc.2.21480.5\'...
Exception occurred while resolving assembly UnityEngine.CoreModule: Could not load file or assembly 'UnityEngine.CoreModule, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Assembly 'UnityEngine.CoreModule, Culture=neutral, PublicKeyToken=null' not resolved
Resolving assembly 'log4net, Culture=neutral, PublicKeyToken=null' using runtime installed at 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.0-rc.2.21480.5\'...
Exception occurred while resolving assembly log4net: Could not load file or assembly 'log4net, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Assembly 'log4net, Culture=neutral, PublicKeyToken=null' not resolved
...

I'm not using any of the above assemblies: Xamarin.Forms.Core, UnityEngine.CoreModule or log4net; and I always run Cake builds at the verbose logging level, which is still reasonably quiet apart from these irrelevant (and hence noisy) assembly resolution failures.

What is expected?

========================================
PublishToS3
========================================
Executing task: PublishToS3
...

Steps to Reproduce

.

Output log

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions