Skip to content

DOTNET_ENVIRONMENT value of Development breaks things in project using the NuGet package #248

@rxv09

Description

@rxv09

I have a .NET 8 Worker SDK application that includes the Microsoft.Azure.SqlDatabase.ElasticScale.Client NuGet package, version 2.4.1.

If I run it with the default launchSettings.json, a class in my project throws an error in the dependency injection startup code, saying Unable to resolve service for type 'Microsoft.Azure.SqlDatabase.ElasticScale.ShardManagement.Shard'.

If I set the DOTNET_ENVIRONMENT environment variable to some value other than Development, the same code works just fine. I can't see any conditional compilation in the source code of this repo that would be doing something different based on the DOTNET_ENVIRONMENT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions