简体   繁体   中英

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: 参考图片

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?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM