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

Portable Class Library + MVVM Light C# Store Application

Dec 4, 2012 at 2:07 AM

I created a Portable Class Library and added the MVVM Light PCL to it.


Term.cs contains a reference to GalaSoft.MvvmLight.

I also created a MVVM Store C# Application. I added a reference to the PCL above. However, when I build the project, I get the following errors:

Cannot resolve Assembly or Windows Metadata file 'GalaSoft.MvvmLight.dll'
Type universe cannot resolve assembly: GalaSoft.MvvmLight, Version=, Culture=neutral, PublicKeyToken=null

If I remove the model class (Term.cs), the MVVM C# Application builds successfully?

I will appreciate any assistance in resolving this

Dec 14, 2012 at 12:11 PM


Couple of things to check up front -- are you using NuGet >= 2.1? 2.2 was just released yesterday.

Are you using the Portable.MVVMLightLibs package from NuGet?

Do you have a reference to the Portable.MVVMLightLibs in your store app project? If you're deriving from ViewModelBase, then other projects that use it need a reference to the libraries that contain base types. That's regular .NET and has nothing to do with PCLs. If you add the package to your store app, does that resolve the issue?