Windows 10으로 업그레이드 한 후에도 같은 문제가 발생했습니다.
이것은 나를 위해 일했다
- Visual Studio 닫기
- 관리자 권한으로 Powershell을 실행하십시오.
- 운영
Set-ExecutionPolicy Unrestricted
- Visual Studio를 관리자 권한으로 실행
- 프로젝트를 정리하고 너겟 패키지 추가
여전히 작동하지 않으면 편집을 시도하십시오 devenv.exe.config
Visual Studio 2013 : C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio\12.0
Visual Studio 2015 : C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio\14.0
다음을 추가하십시오
<dependentAssembly>
<assemblyIdentity name="System.Management.Automation" publicKeyToken="31bf3856ad364e35" />
<publisherPolicy apply="no" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.PowerShell.Commands.Utility" publicKeyToken="31bf3856ad364e35" />
<publisherPolicy apply="no" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.PowerShell.ConsoleHost" publicKeyToken="31bf3856ad364e35" />
<publisherPolicy apply="no" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.PowerShell.Commands.Management" publicKeyToken="31bf3856ad364e35" />
<publisherPolicy apply="no" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.PowerShell.Security" publicKeyToken="31bf3856ad364e35" />
<publisherPolicy apply="no" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.PowerShell.Commands.Diagnostics" publicKeyToken="31bf3856ad364e35" />
<publisherPolicy apply="no" />
</dependentAssembly>