Replace Process.GetCurrentProcess().MainModule.FileName with new API Environment.ProcessPath (We use this only in test tools.) https://github.com/dotnet/runtime/issues/42948 We will get the API only after we move to .Net 6.0 Preview1.
Replace Process.GetCurrentProcess().MainModule.FileName with new API Environment.ProcessPath
(We use this only in test tools.)
dotnet/runtime#42948
We will get the API only after we move to .Net 6.0 Preview1.