-
Notifications
You must be signed in to change notification settings - Fork 725
Change DOTNET_ to ASPIRE_ in config variables #8336
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 58 out of 78 changed files in this pull request and generated no comments.
Files not reviewed (20)
- playground/AspireEventHub/EventHubs.AppHost/Properties/launchSettings.json: Language not supported
- playground/AzureContainerApps/AzureContainerApps.AppHost/Properties/launchSettings.json: Language not supported
- playground/AzureFunctionsEndToEnd/AzureFunctionsEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/AzureSearchEndToEnd/AzureSearch.AppHost/Properties/launchSettings.json: Language not supported
- playground/AzureServiceBus/ServiceBus.AppHost/Properties/launchSettings.json: Language not supported
- playground/AzureStorageEndToEnd/AzureStorageEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/BrowserTelemetry/BrowserTelemetry.AppHost/Properties/launchSettings.json: Language not supported
- playground/CosmosEndToEnd/CosmosEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/CustomResources/CustomResources.AppHost/Properties/launchSettings.json: Language not supported
- playground/DatabaseMigration/DatabaseMigration.AppHost/Properties/launchSettings.json: Language not supported
- playground/Elasticsearch/Elasticsearch.AppHost/Properties/launchSettings.json: Language not supported
- playground/HealthChecks/HealthChecksSandbox.AppHost/Properties/launchSettings.json: Language not supported
- playground/OpenAIEndToEnd/OpenAIEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/OracleEndToEnd/OracleEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/ParameterEndToEnd/ParameterEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/PostgresEndToEnd/PostgresEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/ProxylessEndToEnd/ProxylessEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
- playground/Qdrant/Qdrant.AppHost/Properties/launchSettings.json: Language not supported
- playground/Redis/Redis.AppHost/Properties/launchSettings.json: Language not supported
- playground/SqlServerEndToEnd/SqlServerEndToEnd.AppHost/Properties/launchSettings.json: Language not supported
src/Aspire.ProjectTemplates/templates/aspire-apphost/8.2/Properties/launchSettings.json
Outdated
Show resolved
Hide resolved
src/Aspire.Dashboard/Configuration/PostConfigureDashboardOptions.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: James Newton-King <[email protected]>
Co-authored-by: James Newton-King <[email protected]>
| startInfo.EnvironmentVariables["ASPIRE_BACKCHANNEL_PATH"] = socketPath; | ||
| startInfo.EnvironmentVariables[KnownConfigNames.UnixSocketPath] = socketPath; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a change in this PR, but related to passed in parameters:
All dashboard parameters start with ASPIRE_DASHBOARD. Should these CLI args start with ASPIRE_CLI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit: I see these aren't strictly related to just CLI. Still, structure of names is something to keep in mind. I think it's good that all dashboard parameters have a consistent prefix.
| private static void WaitForDebugger() | ||
| { | ||
| if (Environment.GetEnvironmentVariable("ASPIRE_WAIT_FOR_DEBUGGER") == "true") | ||
| if (Environment.GetEnvironmentVariable(KnownConfigNames.WaitForDebugger) == "true") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason Environment is used directly in a couple of places instead of IConfiguration? cc @mitchdenny
If IConfiguration not available yet? Should have a comment whereever Environment.GetEnvironmentVariable is used to explain why it doesn't follow the convention used everywhere else.
Co-authored-by: James Newton-King <[email protected]>
JamesNK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
Description
Changes from
DOTNET_toASPIRE_in all environment variable and config key names. In some cases it replaces it withASPIRE_. Old keys still work of course, but new ones are preferred.Fixes #8009
Checklist