nuGet恢复后,如何使MonoDevelop更新其缓存? [英] How to make MonoDevelop update it's cache after nuGet's restore?

查看:123
本文介绍了nuGet恢复后,如何使MonoDevelop更新其缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过解决方案的上下文菜单选项还原NuGet软件包..."还原软件包时,MonoDevelop IDE仍将对NuGet库的引用标记为无效,并抱怨不存在命名空间.重新启动IDE有助于清除MonoDevelop的缓存,但是有没有一种方法可以自动执行此操作?也许我错过了某些设置中的某些选项?

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?

推荐答案

当前不是.虽然MonoDevelop将检测已删除的程序集,并通过将引用标记为红色在解决方案"窗口中对此进行指示,但它不会检测回添加的程序集.

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.

调试MonoDevelop似乎MonoDevelop检测到对解决方案文件和项目文件的更改并将重新加载它们.其他更改(例如,正在还原的程序集)将被忽略.

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.

如果可能的话,我将看看如何更改NuGet加载项,以便它在软件包还原后要求MonoDevelop检查引用.

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

这篇关于nuGet恢复后,如何使MonoDevelop更新其缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆