How to make MonoDevelop update it's cache after nuGet's restore?

為{幸葍}努か 提交于 2019-12-13 07:18:08

问题


When restoring packages via solution's context menu option "Restore NuGet Packages..." the MonoDevelop IDE still marks references to NuGet libraries as invalid and complains about non-existing namespaces. Restarting IDE helps as it clears MonoDevelop's cache, but is there a way to do this automatically? Perhaps some option in some settings that I've missed?


回答1:


Not currently. Whilst MonoDevelop will detect assemblies that have been removed, and indicates this in the Solution window by marking the reference in red, it does not detect assemblies that been added back.

Debugging MonoDevelop it seems as though MonoDevelop detects changes to the solution file and project file and will reload them. Other changes, such as assemblies being restored, are ignored.

If possible I will have a look at changing the NuGet addin so it asks MonoDevelop to check the references after a package restore.



来源:https://stackoverflow.com/questions/19002989/how-to-make-monodevelop-update-its-cache-after-nugets-restore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!