Support shared hosts other than dotnet.exe (dotnet/core-setup#3356)
authorSteve Harter <steveharter@users.noreply.github.com>
Mon, 30 Oct 2017 17:44:53 +0000 (12:44 -0500)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2017 17:44:53 +0000 (12:44 -0500)
commit1170a9836d964286014947860d99bb63dfe0b9f3
tree8557dc15a88571dc736a1760f47d515d59736eef
parent884b3709a3bc890f9e93670d23a29fa93f765161
Support shared hosts other than dotnet.exe (dotnet/core-setup#3356)

Use argv[0] to calculate own_dir. Only the path portion of argv[0] is used; the file part (expected to be dotnet.exe) is not used in any way other to verify the file exists.

Commit migrated from https://github.com/dotnet/core-setup/commit/786a4fdd71d98b82414a639b4f0094d8bab93cf2
src/installer/corehost/cli/args.cpp
src/installer/corehost/cli/fxr/fx_muxer.cpp