Closed ip240Z closed 11 months ago
I'm not sure that the install scripts work in Powershell's Constrained Language Mode.
I'm going to transfer this one to the install-scripts team to investigate the interaction here.
Hi @ip240Z,
I assume this issue is related to set policies on your workstation.
Could you check your $ExecutionContext.SessionState.LanguageMode in PS and share the result with us?
Feel free to reopen if it is still relevant for you.
Repro steps:
1.
Extension Version: 1.0.0 Error Message: .NET Acquisition Failed: Installation failed: Cannot set property. Property setting is supported only on core types in this language mode. At line:1 char:5
C:\Users***.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install scripts\dotnet-install.ps1 : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:136
Error Stack: Error: .NET Acquisition Failed: Installation failed: Cannot set property. Property setting is supported only on core types in this language mode. At line:1 char:5
C:\Users\.vscode\extensions\ms-dotnettools.vscode-dotnet-runtime-1.6.0\dist\install scripts\dotnet-install.ps1 : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:136