-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
When using Powershell framework dependent package, the trusted assembly list must be looked up at two locations, under PSHOMEDIR and CORECLRDIR from the c:\Windows\System32\PowerShell\7.0.0-rc.3\RemotePowerShellConfig.txt file.
PowerShell-Native/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp
Lines 1447 to 1462 in d4acbd5
| this->GetTrustedAssemblyList(hostEnvironment.GetCoreCLRDirectoryPath(), assemblyList, listEmpty); | |
| if (listEmpty) | |
| { | |
| // Fall back to attempt to load the CLR from the alternate inbox location | |
| char coreCLRPowerShellExtInstallPath[MAX_PATH]; | |
| ::ExpandEnvironmentStringsA(coreCLRPowerShellExtInstallDirectory, coreCLRPowerShellExtInstallPath, MAX_PATH); | |
| this->GetTrustedAssemblyList(coreCLRPowerShellExtInstallPath, assemblyList, listEmpty); | |
| } | |
| if (listEmpty) | |
| { | |
| // No CoreCLR assemblies were found in either location. There is no | |
| // point in continuing. | |
| this->output->DisplayMessage(false, g_STARTING_CLR_FAILED, GetLastError()); | |
| return EXIT_CODE_INIT_FAILURE; | |
| } |
Metadata
Metadata
Assignees
Labels
No labels