This project has moved. For the latest updates, please go here.

RelayCommand.cs not found

Jan 8, 2014 at 5:03 PM
Edited Jan 8, 2014 at 5:12 PM
Using Visual Studio 2013, Win7. Installed MVVM Light and got a message that RelayCommand.cs was not found. Discovered I was using the wrong version (found correct version here). Still getting error message.

First of all, I use VB and the extension is CS. Could that be the problem?

I noticed a line in the Disassembly that refers to net 35. Do I need to uninstall the incorrect version first. then reinstall the correct version? I just installed the correct over the wrong.

I did a search for this file and it is on my c drive.


(sorry, cannot upload the image for some reason. Here's the line in question: g:\GalaSoft\mydotnet\MvvmLight\Source\GalaSoft.MvvmLight\GalaSoft.MvvmLight (NET35)\Command\RelayCommand.cs

Jan 8, 2014 at 6:25 PM
Disregard. I posted this to StackOverflow instead
Jan 15, 2014 at 4:12 PM
This is not being answered in StackOverflow. Can it be answered here, please?
Jan 15, 2014 at 4:26 PM

You are getting an error which is independent of MVVM Light, but the error is thrown from within the RelayCommand, this is why it is looking for the source code file.

In my experience, errors in the RelayCommand are often caused by invalid casts, i.e. you expect a parameter of type A but in fact it is of type B. It would help if you would post the actual error message that you are getting. Just ignore the disassembly message.