I'm following this tutorial for mvvmcross and I'm trying to get the "Windows Phone UI" project working. However when I try to set references to the mvvmcross binaries, Visual Studio (2012 Premium) displays an error: a reference to a higher version or incompatible assembly cannot be added to the project.
I am using the mvvmcross binaries from 2013_01_28 as specified in the tutorial and have installed Windows Phone SDK (7.1 and 8.0). I have tried with both WP7.1 and WP8 projects but same error occurs.
Are there perhaps different binaries I should be using for WP8 VS2012?
What am I missing here?
Thanks in advance!
My guess is that you downloaded the files from the Interweb and Windows is protecting you from evil.
Try unblocking the assemblies:
http://pcmusings.wordpress.com/2012/10/31/vs2012-windows-phone-and-the-reference-to-a-higher-version-error/
Related
I am hoping to work with Xamarin for a project, primarily to learn a little about cross-platform app development, and would prefer to stick to developing on Linux. This led me to attempt to work with the JetBrains Rider IDE, something that I believed to be fairly well documented, as per these resources:
Xamarin.Android on Linux (in coordination with its Ubuntu 19.04 update post)
Failed to load Xamarin Forms project with .NET Standard 2.0 Lib in Rider
0xFireball's Xamarin.Android on Linux guide with associated Rider/IDE setup
I've been able to install everything just fine, Android Studio and Rider were installed via JetBrains Toolbox (I also tried installing Rider manually, but it made no change), and I am able to create the project and configure the Android settings for the Xamarin project.
This is where my luck ends, since despite trying the various resources I've linked above, including reinstalling mono and dotnet-sdk multiple times, I get this error no matter what I try:
Xamarin SDK was not found: Rider was unable to find Xamarin SDK on
this machine. Xamarin-based projects will not be loaded. Please
install Xamarin SDK or change toolset.
I've tried following the instructions both on a manually installed Rider 2019.1.3 (Build #RD-191.7141.460) and Rider 2019.2 EAP (Build #RD-192.5895.291).
I'm fairly new to the world of Xamarin, so I'm not sure where to begin looking. What exactly is the Xamarin SDK (is it just Xamarin.Android?), and what should I be checking my setup for in order for Rider to detect the Xamarin SDK?
It appears that what Rider installs via its Environment page, is only the Xamarin Android package. Not the actually Android Studio SDK, which is needed to develop any android apps. You have to download that separately.
I've developed a UWP project with Behaviors SDK in VS2015 (Windows 10).
Then I've installed VS2017 and tried to run the app without any changes. Unfortunately I'm getting below error for Behaviors SDK.
Are there any solution or workaround for this problem?
Reference Image:
Error Output:
error MSB3774: Could not find SDK "BehaviorsXamlSDKManaged, Version=12.0"
You should use the Microsoft.Xaml.Behaviors.Uwp.Managed nuget package instead (or Microsoft.Xaml.Behaviors.Uwp.Native if you develop your application in C++). The source code of these packages are available on GitHub.
Behaviors SDK was created for WinRT projects (Windows 8.0/8.1). Microsoft.Xaml.Behaviors.Uwp.Managed package seems to be a recommended replacement for the Behaviors SDK for the UWP applications (even in VS2015).
I have created new Xamarin.Forms (Portable) application and tried to build but I am getting the error
TargetFrameworkVersion v7.0 could not be converted to an Android API level. Xamarin.Forms (Portable)
Please check the attached screenshot.
Are there any solutions for this?
This problem is resolved now. I have just formatted my Windows 8.1 and reinstalled everything. I have reinstalled Windows 8.1 and Visual Studio 2015 Update 2 and try to rebuild the application and It's working.
I am not sure about the other solution. Maybe there are some other solutions to resolve this issue.
Thank You.
After researching MVVMCross project, I am very keen to use it in a new mobile project and began setting out my project today. All was going fine until I tried to target the exact frameworks Stuart does in the "N=0 : A first MvvmCross Application" youtube video. I've no idea why this collection isn't allowed and I'm not as knowledgeable on PCLs and "profiles" as I could be.
Environment:
I'm using VS2012, although VS2013 is installed also. WP7.1 is installed as is SL5 and Xamarin.iOS and Xamarin.Android. I've tried to repair both Xamarin installations because I thought the issue might have been that I installed WP7.1 after the Xamarin pair.
Also worth noting is that if I uncheck Windows Phone 7.5 and higher then it still won't work. I have to also set Silverlight 5 for the dialog to let me proceed. I'm not sure what more I can do do get this working so I'd appreciate any help I can get. All I want is to basically target the exact frameworks as are in that video mentioned above.
There are no Monotouch or Monodroid projects right now in Xamarin, so that link will not realy help you. They are called now Xamarin.iOS and Xamarin.Android. So what I've done that helped me, I've extended Profile 7, so it now supports WP7, iOS, Android and WinStore and it works great, no problems yet and I've already complete a couple of projects with it. So at that link - PCL Setup - you can find where all the profiles located and with that info try to extend Profile 7 as I suggested. So I've coppied the Windows Phone 7.xml from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.0\Profile\Profile131\SupportedFrameworks to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\v4.5\Profile\Profile7\SupportedFrameworks
The video and PCL setup link are out of date now that Xamarin has released official support for PCLs. I'd recommend targeting the following platforms:
Windows Phone 8
Windows Store apps (Windows 8)
.NET Framework 4.5
Xamarin.iOS
Xamarin.Android
And, optionally you can target Silverlight 5.
I'm using Facebook C# SDK 5.0.8 Beta binary build.
When I try to add a reference of Facebook.Contracts.dll to my Windows Phone application I get the following warning:
If you add a reference to a silverlight assembly can cause unexpected behavior of the application.
Is it an error?
nope it's just that the dll was compiled against the desktop version of silverlight. This doesn't mean that it won't work, and you should be fine assuming that the dll has be tested on the phone.