dotnet / dotnet/vscode-dotnet-runtime

Error on Windows 7 (Property setting is supported only on core types in this language mode)

Open
#58 4 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

Original bug here: https://github.com/microsoft/vscode-azurearmtools/issues/549, filed by @cetincig

This extension requires .NET Core for full functionality.
[dotnet 2.2.5]: Found an incompletely-installed version of dotnet 2.2.5... Uninstalling.
[dotnet 2.2.5]: Uninstalling dotnet version 2.2.5
[dotnet 2.2.5]: Removing folder c:\Users\ccig.exterieur@fp-lp.fr\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5
[dotnet 2.2.5]: Finished removing folder c:\Users\ccig.exterieur@fp-lp.fr\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5
[dotnet 2.2.5]: Finished uninstalling dotnet version 2.2.5
Using this command to install .NET Core version 2.2.5:
"c:\Users\ccig.exterieur@fp-lp.fr\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.cmd" -InstallDir 'c:\Users\ccig.exterieur@fp-lp.fr\AppData\Roaming\Code\User\globalStorage\msazurermtools.azurerm-vscode-tools\.dotnet\2.2.5' -Runtime dotnet -Version 2.2.5
Downloading .NET Core tooling version(s) 2.2.5............[dotnet 2.2.5]: STDERR: Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:1
+ [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:63
+ ... lture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

C:\Users\ccig.exterieur@fp-lp.fr\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.ps1 : Cannot invoke
method. Method invocation is supported only on core types in this language mode.
At line:1 char:126
+ ... ulture = '';& 'c:\Users\ccig.exterieur@fp-lp.fr\.vscode\extensions\ms ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [dotnet-install.ps1], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,dotnet-install.ps1

Error!
Failed to download .NET Core tooling 2.2.5:
Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:1
+ [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:63
+ ... lture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

C:\Users\ccig.exterieur@fp-lp.fr\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.ps1 : Cannot invoke
method. Method invocation is supported only on core types in this language mode.
At line:1 char:126
+ ... ulture = '';& 'c:\Users\ccig.exterieur@fp-lp.fr\.vscode\extensions\ms ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [dotnet-install.ps1], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,dotnet-install.ps1

Error: >>>> This extension requires .NET Core for full functionality, but we were unable to download and install a local copy for the extension. If this error persists, please see https://aka.ms/vscode-armtools-dotnet for troubleshooting tips.
Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:1
+ [System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

Cannot set property. Property setting is supported only on core types in this language mode.
At line:1 char:63
+ ... lture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertySetterNotSupportedInConstrainedLanguage

C:\Users\ccig.exterieur@fp-lp.fr\.vscode\extensions\msazurermtools.azurerm-vscode-tools-0.8.4\assets\install scripts\dotnet-install.ps1 : Cannot invoke
method. Method invocation is supported only on core types in this language mode.
At line:1 char:126
+ ... ulture = '';& 'c:\Users\ccig.exterieur@fp-lp.fr\.vscode\extensions\ms ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [dotnet-install.ps1], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage,dotnet-install.ps1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.