You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code Version - 1.84.0-insider (also tried with 1.83.1)
VS Code Powershell Extension - v2023.8.0
Powershell version - 7.3.8
PnP.Powershell module version - 2.2
I have a script that has the following:
Connect-PnPOnline -Url -ClientId -Tenant <tenant-id>
-Thumbprint
This script fails on the first command with the following error:
Connect-PnPOnline: Could not load file or assembly 'Microsoft.Identity.Client, Version=4.50.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. Could not find or load a specific file. (0x80131621)
This issue is in VS Code only, when I do the same in native Powershell terminal - it works fine.
PowerShell Version
Name Value---- -----PSVersion 7.3.8PSEdition CoreGitCommitId 7.3.8OS Microsoft Windows 10.0.19045Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0
Visual Studio Code Version
1.84.0-insiderc42f8961f9ba803175ccbb8260e8d70d561f8beex64also tried with 1.83.1 with the same result
VS Code Version - 1.84.0-insider (also tried with 1.83.1)
VS Code Powershell Extension - v2023.8.0
Powershell version - 7.3.8
PnP.Powershell module version - 2.2
This script fails on the first command with the following error: Connect-PnPOnline: Could not load file or assembly 'Microsoft.Identity.Client, Version=4.50.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. Could not find or load a specific file. (0x80131621)
This issue is in VS Code only, when I do the same in native Powershell terminal - it works fine.
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered:
Please see the pinned issue and ask the PnP.PowerShell devs to fix their module: #3510 In short, they isolated a couple dependencies but not all their dependencies, which causes Microsoft.Identity.Client to conflict with many other modules like ExchangeOnline etc.)
Prerequisites
Summary
VS Code Version - 1.84.0-insider (also tried with 1.83.1)
VS Code Powershell Extension - v2023.8.0
Powershell version - 7.3.8
PnP.Powershell module version - 2.2
I have a script that has the following:
Connect-PnPOnline -Url -ClientId
-Tenant <tenant-id>
-Thumbprint
This script fails on the first command with the following error:
Connect-PnPOnline: Could not load file or assembly 'Microsoft.Identity.Client, Version=4.50.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. Could not find or load a specific file. (0x80131621)
This issue is in VS Code only, when I do the same in native Powershell terminal - it works fine.
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
I have a script that has the following:
This script fails on the first command with the following error:
Connect-PnPOnline: Could not load file or assembly 'Microsoft.Identity.Client, Version=4.50.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. Could not find or load a specific file. (0x80131621)
This issue is in VS Code only, when I do the same in native Powershell terminal - it works fine.
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: