StartupHooks and EnvironmentVariables in .NET (not ASP.NET) #65007
-
I'm struggling a bit with startup hooks and environment variables in runtimeConfig.json. Obviously the current runtimeConfig.json does not support to set environment variables at startup which I think would solves a lot of my problems in general. The docs and the schema do not say anything about this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can set a runtime property Curious: What use case do you have to set startup hooks in |
Beta Was this translation helpful? Give feedback.
You can set a runtime property
STARTUP_HOOKS
in the.runtimeconfig.json
. The ENVDOTNET_STARTUP_HOOKS
sets this property effectively (if both are present, they will be concatenated with the ENV going first).Curious: What use case do you have to set startup hooks in
.runtimeconfig.json
?