EventToCommand don't exist in Mvvmlight toolkit WPF4.5

二次信任 提交于 2019-12-03 07:15:00

I had a similar problem, using VS2013. Mine said:

EventToCommand does not exist in the namespace "http://www.galasoft.ch/mvvmlight"

Which sounded like nonsense since everything seemd to match... and the project was runing after rebuild/clean/whatever.

Solution:

1) Using NuGet (right-click on project in Solution Explorer) I uninstalled the "MVVM Light Libraries only" (it asked if I wanted to uninstalled the related CommonServiceLocator, I said: yes, whatever)

Rebuild, (just in case) It gave a lot of errors as expected, the ones about EventToCommand were still there.

2) Using NuGet I now installed the "MVVM Light Libraries only". Rebuilt and now it works. No errors, no warnings, rock on ;-)

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