Skip to content

[Bug]: The specified logger could not be created and will not be used. The given assembly name was invalid. #9289

@yanrez

Description

@yanrez

Issue Description

I'm running dotnet locally, and it prints annoying warning without giving any details which logger failed

The specified logger could not be created and will not be used. The given assembly name was invalid.

dotnet (and msbuild) should print name of offending logger to help root cause the problem

Steps to Reproduce

It's hard to tell which steps need to be taken to get into this state. On my machine it reproduces with simple 'dotnet new webapp'.

PS C:\src\Repo\src\myapp> dotnet new webapp
The template "ASP.NET Core Web App" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/7.0-third-party-notices for details.

Processing post-creation actions...
Restoring C:\src\Repo\src\myapp\myapp.csproj:
The specified logger could not be created and will not be used. The given assembly name was invalid.
....

Expected Behavior

Print name of logger that failed to load

Actual Behavior

Logger name is not displayed

Analysis

No response

Versions & Configurations

No response

Metadata

Metadata

Assignees

Labels

Priority:2Work that is important, but not critical for the releasebugtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions