JTIM
JTIM

Reputation: 2771

Upgrading WP8 to Silverlight WP8.1, assembly issue

I have updated my project to Silverlight WP8.1, and updated the different nuget packages. Rebuild, restart, clean and rebuild :) But I keep getting an error with one assembly for one of my dll's.

Error 24 Assembly 'MainGame, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'GalaSoft.MvvmLight, Version=5.1.1.35049, Culture=neutral, PublicKeyToken=e7570ab207bcb616' which has a higher version than referenced assembly 'GalaSoft.MvvmLight, Version=5.0.2.32240, Culture=neutral, PublicKeyToken=e7570ab207bcb616' c:\Users\johann\Desktop\StoneGaard\MainGame\Bin\ARM\Debug\MainGame.dll MVVMTestApp

I have reinstalled and removed and reinstalled the MVVMLight Package. I am sure that the references are new 5.1.1.x when looking in the references overview: Image of references

Finally I have tried deleting the Maingame.dll and restarting yet again and rebuilding with the same error.

Can anyone help with solving the error?

Upvotes: 2

Views: 72

Answers (1)

fillobotto
fillobotto

Reputation: 3775

I think you are referencing the wrong libraries. (Maybe you pick the WP8.1 RT version?) Try using Nuget package installer, so it automatically choose the right ones for your project.

Open Tools > Nuget package manager > Package manager console and use this command:

Install-Package MvvmLight

Nuget lib page: https://www.nuget.org/packages/MvvmLight/

Upvotes: 2

Related Questions