Skip to content

Nuget package injects global usings #59209

@kemsky

Description

@kemsky

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Nuget package (https://www.nuget.org/packages/Telegram.Bot 22.1.3) adds dependency :

<FrameworkReference Include="Microsoft.AspNetCore.App" >

then after upgrade the following code stops compiling:

using Google.Apis.Http;

namespace Gmail.Services;

internal interface IGoogleHttpClientFactory : IHttpClientFactory // Ambiguous reference: IHttpClientFactory
{
}

Is there any way to disable transitive global usings (#32451)?

Expected Behavior

Expected no errors.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions