我正在Windows 10上使用Visual Studio 2017 Enterprise。 当我尝试使用PM控制台时遇到了这些错误。
加载扩展类型数据文件时发生以下error:
Microsoft.PowerShell.Core, C:\Windows\SysWOW64\WindowsPowerShell\v1.0\typesv3.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\typesv3.ps1xml cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170..
Errors occurred while loading the format data file: Microsoft.PowerShell.Diagnostics, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Errors occurred while loading the format data file: Microsoft.PowerShell.Core, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Errors occurred while loading the format data file: Microsoft.WSMan.Management, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Errors occurred while loading the format data file:
Microsoft.PowerShell.Diagnostics, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Event.Format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Microsoft.PowerShell.Core, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Help.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Microsoft.WSMan.Management, , C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml: The file was skipped because of the following validation exception: File C:\Windows\SysWOW64\WindowsPowerShell\v1.0\WSMan.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
我删除了%AppData%/Local/Microsoft/Visual Studio
文件夹。
并重新启动笔记本电脑,重新打开Visual Studio,但发生相同的错误。
你能解决这个问题吗?