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,
|
||||
// else we assume we received an absolute path to dotnet.exe
|
||||
hr = GetStandaloneHostfxrParameters(
|
||||
struExeLocation.QueryStr(),
|
||||
pcwzApplicationPhysicalPath,
|
||||
pcwzArguments,
|
||||
hEventLog,
|
||||
struHostFxrDllLocation,
|
||||
pdwArgCount,
|
||||
ppwzArgv);
|
||||
goto Finished;
|
||||
if (!struExeLocation.EndsWith(L"dotnet.exe") &&
|
||||
!struExeLocation.EndsWith(L"dotnet"))
|
||||
{
|
||||
hr = GetStandaloneHostfxrParameters(
|
||||
struExeLocation.QueryStr(),
|
||||
pcwzApplicationPhysicalPath,
|
||||
pcwzArguments,
|
||||
hEventLog,
|
||||
struHostFxrDllLocation,
|
||||
pdwArgCount,
|
||||
ppwzArgv);
|
||||
goto Finished;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue