This project has moved and is read-only. For the latest updates, please go here.

Problems using binaries in other PCs

Jan 9, 2014 at 7:58 AM

I'm developing desktop application with MVVM Light. I began to develop it in Windows 8 with VS 2012, and now I'm using in Windows 8.1 (and VS 2012). I added MVVM Light with Nuget. In my PC the app runs okey, but if pass the binaries to other PC it doesn't run, and when the MainViewModel is null and I get a NullReferenceException.

Does MVVM Light have any dependencies?
Jan 9, 2014 at 10:42 AM

MVVM Light is self contained in the Nuget package. If you make sure that the Nuget package is copied to the other PC (i.e. the packages folder which was created inside your source code folder), you should be fine.

Please check it out and reach out again if you still have issues.

Jan 9, 2014 at 11:45 AM
Inside packages\MvvmLightLibs.\lib\net40 folder I have 3 dlls:
  • GalaSoft.MvvmLight.Extras.WPF4.dll
  • GalaSoft.MvvmLight.WPF4.dll
  • System.Windows.Interactivity.dll
These 3 libraries are in my output bin folder, that I use to copy the application to other PCs.
Jan 9, 2014 at 1:50 PM
The reason for the error may be that there is an unhandled exception in MainViewModel load. I'm checking it.