Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScriptAssemblyResolver logging should be at debug/diagnostic level #3681

Closed
2 tasks done
gitfool opened this issue Nov 8, 2021 · 1 comment · Fixed by #3682
Closed
2 tasks done

ScriptAssemblyResolver logging should be at debug/diagnostic level #3681

gitfool opened this issue Nov 8, 2021 · 1 comment · Fixed by #3682
Milestone

Comments

@gitfool
Copy link
Contributor

gitfool commented Nov 8, 2021

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

@gitfool gitfool changed the title ScriptAssemblyResolver logging should be at diagnostic level ScriptAssemblyResolver logging should be at debug/diagnostic level Nov 8, 2021
@devlead devlead added this to the v2.0.0 milestone Nov 8, 2021
@cake-build-bot
Copy link

🎉 This issue has been resolved in version v2.0.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants