We have multiple different .NET Core applications on Windows host. We want to instrument these applications one by one.
You can set the environment variable on the application startup in the batch script.
Instead of starting the executable directly, you can run a batch-file instead, which sets the environment variables and then starts the executable.
In the case of windows-services, you can also set the environment variables per service via the registry.