3

Closed

Windows Phone 7 project no longer compiling after upgrade to 4.3.31.0

description

Just upgraded several nuget packages for Windows Phone 7 project including MVVM light libraries upgrade to 4.3.31.0.

When recompiling the project I get the following errors, could this have something to do with the upgrade of MVVM Light, or do I need to solve this problem in another way?

Windows Phone 7 does not compile, but Windows Phone 8 projects does compile without problems.

10>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3258: The primary reference "GalaSoft.MvvmLight.Extras.WP71, Version=4.3.31.28777, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the .NET Framework assembly "System.Windows, Version=2.0.6.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" which has a higher version "2.0.6.0" than the version "2.0.5.0" in the current target framework.

10>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3258: The primary reference "GalaSoft.MvvmLight.WP71, Version=4.3.31.28777, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the .NET Framework assembly "System.Windows, Version=2.0.6.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" which has a higher version "2.0.6.0" than the version "2.0.5.0" in the current target framework.
Closed Oct 14 at 8:32 PM by lbugnion

comments

uxadditives wrote Apr 5 at 7:39 PM

Note: the previous MVVM light library version 4.2.30.0 did work, but it seems that this previous library is no longer in the Nuget repository.

Found some old MVVM sources on my system and used those in my projects ans was able to compile again the WP7 project. So it seems there is something wrong in the latest Nuget package for WP7

lbugnion wrote Apr 6 at 12:11 AM

Thanks for the note. Like you I suspect something is wrong with the Nuget package. I will check it out tomorrow and let you know.

cheers
Laurent

Necroman wrote Apr 6 at 2:32 PM

Probably related - there is a bug in the MVVM (PCL) NuGet package - in my WP8 project I use the EventToCommand in XAML. In version 4.2.30.0 all worked, but in 4.3.31.0 it's no longer working, because the GalaSoft.MvvmLight.Platform.dll assembly is actually built for WP8.1, not WP8!
I had to revert to previous version of that package to continue the development.

Note I have also a question, why is there separate wp8 and wpa81 folder in the NuGet package if there is already portable-net45+wp8+win8+wpa81 folder that works on that platform as well?

lbugnion wrote Apr 6 at 3:13 PM

Thanks for the additional comment. Travelling now, I Laurent,check it asap. For now, please revert to 4.2.30 which is functionally identical.

cheers
Laurent

uxadditives wrote Apr 7 at 5:49 PM

thanks for the feedback, will await patiently :)

lbugnion wrote May 11 at 4:24 PM

Could you do me a favor and check now with V4.4.32 (available on Nuget).

I found a few issues with the WP7.1 version and I think i fixed them all.

Thanks!
Laurent