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.