Share via


Package Manager Console does not work in a sudden

Question

Friday, July 26, 2019 2:20 PM

It happens to me that in a sudden the Package Manager Console does not work any more on both my Visual Studio 2017 and 2019. This is the error message I got:

The following error occurred while loading the extended type data file: , C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\NUGET\Modules\NuGet\NuGet.Types.ps1xml: The file was skipped because of the following validation exception: File C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\NUGET\Modules\NuGet\NuGet.Types.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..

How to resolve this issue?

All replies (3)

Monday, July 29, 2019 8:54 AM âś…Answered

Hi Herman.Syah,

Welcome to the MSDN forum.

According to your problem, l suggest you should check if there is any certificates issued by Microsoft in the list of Untrusted Publishers on your machine. If so, please delete them. More information you can refer to this.

If this does not work, please share the information about what extension you installed before or which step you did before the issue occurred.

Any feedback will be expected.

Best Regards,

Perry

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Sunday, July 28, 2019 12:30 PM

Sounds like someone changed a network group policy that broke NuGet.  I am assuming this happen at work so you need to talk to someone who manages group policy about it


Monday, July 29, 2019 2:11 PM

Thanks Perry.