5

Closed

NuGet.Types.ps1xml is not digitally signed

description

I installed 1.5 now, but 1.4 past month and had a error like below, but it was easy to solve.
1.5 (after updating in VS EM) it gives the error. After deinstalling and reinstalling it, it gives the same error.

Doesn't work:
  • I Unblocked NuGet.Tools.vsix and installed.
  • I started Visual Studio as administrator.
The following error occurred while loading the extended type data file: , C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\NuGet.Types.ps1xml : File skipped because of the following validation exception: File C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\NuGet.Types.ps1xml cannot be loaded. The file C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\NuGet.Types.ps1xml is not digitally signed. The script will not execute on the system. Please see "get-help about_signing" for more details...
There were errors in loading the format data file: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\NuGet.Format.ps1xml, , C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\NuGet.Format.ps1xml : File skipped because of the following validation exception: File C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\NuGet.Format.ps1xml cannot be loaded. The file C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\NuGet.Format.ps1xml is not digitally signed. The script will not execute on the system. Please see "get-help about_signing" for more details...
File C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\profile.ps1 cannot be loaded. The file C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.5.20831.9017\Modules\NuGet\profile.ps1 is not digitally signed. The script will not execute on the system. Please see "get-help about_signing" for more details..
Closed Sep 13, 2011 at 7:30 PM by aldion
Verifiex.
fixes in Nuget release 1.5.20902.9023

comments

jspraul wrote Sep 6, 2011 at 8:16 PM

The 'I like Nuget and PowerShell/VBScript viruses' workaround:

• Run PowerShell as Administrator (press Windows key, type 'PowerShell', right click 'PowerShell Console' icon and click 'Run as administrator')
• Get-ExecutionPolicy (record value returned so that you can undo this security hole someday)
• Set-ExecutionPolicy Unrestricted
• Hope that your settings aren't restricted by Group Policy

You can also read all the help (Get-Help about_signing) to find out how to create a self-signed cert, sign the scripts with it, and use 'AllSigned' instead of 'Unrestricted'.

A proper fix: sign Nuget powershell scripts! And test installs on default PowerShell settings prior to release...

rfcdejong wrote Sep 8, 2011 at 12:29 PM

Seems to be Fixed in version 1.5.20902.9023, thanks