当前位置: 动力学知识库 > 问答 > 编程问答 >

xamarin.ios - How to change the .NET framework of a Xamarin project in Visual Studio

问题描述:

I am working on an app and I would like to change its .NET framework.

Normally that would be under Properties->Application but I couldn't find it anywhere for Android or iOS applications.

I am aware that I can create a new project and specify it then (as can be seen in the picture), but there must be a different way to change it.

Thanks in advance.

网友答案:

It's Xamarin's decision to lock down Xamarin.iOS and Xamarin.Android projects to use .NET 4.5 profile by default, which enables huge benefits to be compatible with Microsoft. Unless Microsoft creates 4.6 or 5.0 profile, there is never a need for you to switch.

You can read from multiple locations the similar statements, such as "Now our class libraries are based on the .NET 4.5 profile",

http://docs.xamarin.com/releases/ios/xamarin.ios_6/xamarin.ios_6.3/

That's the obvious evidence.

网友答案:

The reason is that neither Android or iOS offer different versions of the .NET framework, there is only one profile, that we call the "Mobile Profile".

The Mobile Profile is basically .NET 4.5 without System.Configuration and its dependencies and has been further tuned to work on mobile devices.

分享给朋友:
您可能感兴趣的文章:
随机阅读: