Fix absolute paths to dotnet (#597)
This commit is contained in:
parent
c395db12e6
commit
ff496ca580
|
|
@ -188,15 +188,19 @@ HOSTFXR_UTILITY::GetHostFxrParameters(
|
||||||
{
|
{
|
||||||
// Check if hostfxr is in this folder, if it is, we are a standalone application,
|
// Check if hostfxr is in this folder, if it is, we are a standalone application,
|
||||||
// else we assume we received an absolute path to dotnet.exe
|
// else we assume we received an absolute path to dotnet.exe
|
||||||
hr = GetStandaloneHostfxrParameters(
|
if (!struExeLocation.EndsWith(L"dotnet.exe") &&
|
||||||
struExeLocation.QueryStr(),
|
!struExeLocation.EndsWith(L"dotnet"))
|
||||||
pcwzApplicationPhysicalPath,
|
{
|
||||||
pcwzArguments,
|
hr = GetStandaloneHostfxrParameters(
|
||||||
hEventLog,
|
struExeLocation.QueryStr(),
|
||||||
struHostFxrDllLocation,
|
pcwzApplicationPhysicalPath,
|
||||||
pdwArgCount,
|
pcwzArguments,
|
||||||
ppwzArgv);
|
hEventLog,
|
||||||
goto Finished;
|
struHostFxrDllLocation,
|
||||||
|
pdwArgCount,
|
||||||
|
ppwzArgv);
|
||||||
|
goto Finished;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue