添加新的 NuGet 包时如何解决 OutOfMemoryException 错误?
How to solve OutOfMemoryException errors when adding a new NuGet package?
类似于this question, I'm getting an exception in the Package Manager Output window while adding a new NuGet package (System.Collections.Immutable):
Failed to update binding redirects for MyProject.csproj : Exception of type 'System.OutOfMemoryException' was thrown.
虽然我找到了 NullReferenceException
errors, I found none for my OutOfMemoryException
的很多结果。
我的问题:
如何解决向项目添加新的 NuGet 包时出现 OutOfMemoryException
错误?
我的解决方案是:
- 退出Visual Studio。
- 重新开始 Visual Studio。
- 卸载软件包。
- 重新安装包。
之后,包管理器输出中没有显示异常 window。
我仍然没有包的绑定重定向,但也许根本不需要。
类似于this question, I'm getting an exception in the Package Manager Output window while adding a new NuGet package (System.Collections.Immutable):
Failed to update binding redirects for MyProject.csproj : Exception of type 'System.OutOfMemoryException' was thrown.
虽然我找到了 NullReferenceException
errors, I found none for my OutOfMemoryException
的很多结果。
我的问题:
如何解决向项目添加新的 NuGet 包时出现 OutOfMemoryException
错误?
我的解决方案是:
- 退出Visual Studio。
- 重新开始 Visual Studio。
- 卸载软件包。
- 重新安装包。
之后,包管理器输出中没有显示异常 window。
我仍然没有包的绑定重定向,但也许根本不需要。