Problems using binaries in other PCs

Jan 9, 2014 at 6:58 AM
Hello,

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?
Coordinator
Jan 9, 2014 at 9:42 AM
Hi,

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.

Thanks
Laurent
Jan 9, 2014 at 10:45 AM
Inside packages\MvvmLightLibs.4.1.27.0\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 12:50 PM
The reason for the error may be that there is an unhandled exception in MainViewModel load. I'm checking it.