Environment variables are set before running the program. You could make a bat file that sets the variables, then runs the app.
Use launchSettings.json outside debugging environment?
Sedlmair, Martin (SHS DI CT R&D CTC SA)
6
Reputation points
I'm having a .NET core desktop application where I need to set some environment variables before the runtime starts up. Specifically I need to set the DOTNET_Thread_UseAllCpuGroups=true to enable NUMA core processing. Currently I couldn't find any way to set the environment variables. runtimeConfig.json does not allow this.
Developer technologies | .NET | .NET Runtime
1,270 questions
1 answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2022-01-13T15:55:25.783+00:00