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

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

Open
rxv09 opened this issue Mar 27, 2024 · 0 comments

Comments

@rxv09
Copy link

rxv09 commented Mar 27, 2024

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.

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

No branches or pull requests

1 participant