PowerShell / PowerShell/PowerShell-Native

Powershell FxDependent package cannot use New-PSSession

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
68
Forks
46
Avg merge
3d 4h
Merged PRs (30d)
1

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.

https://github.com/PowerShell/PowerShell-Native/blob/d4acbd519d1c77e07abc894db42853055ef65f55/src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp#L1447-L1462

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/powershell-native/nativemsh/pwrshcommon/pwrshcommon.cpp around lines 1447-1462, and compare the trusted assembly lookup with RemotePowerShellConfig.txt under PSHOMEDIR and CORECLRDIR. Verify the framework-dependent package can create a session with New-PSSession using the configuration path shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, powershell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.