简体   繁体   English

如何在Xamarin中为MonoMac exe更改.NET版本?

[英]How do I change .NET version in Xamarin for a MonoMac exe?

There doesn't seem to be a place to do this. 似乎没有这样做的地方。 Usually I go to Options -> General for libraries and then I can change the Framework version... strange. 通常,我会转到“选项”->“库的常规”,然后可以更改框架版本...很奇怪。

Yeah, a couple of months ago I ran into this same issue; 是的,几个月前,我遇到了同样的问题; I checked the .csproj file of a project that had this setting visible to see what the deal was, and the issue went away after I copied over the setting: 我检查了具有此设置可见的项目的.csproj文件,以查看交易情况,在复制设置后问题消失了:

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>

at the end of the first property group. 在第一个属性组的末尾。

You can't change that, it's determined by the Xamarin version you are using, currently (a subset of) .Net 4.5 您无法更改,它由您正在使用的Xamarin版本决定,当前(.net 4.5的子集)

TargetFrameworkVersion mentioned in the previous answer is Android framework version, not .Net framework version. 上一个答案中提到的TargetFrameworkVersion是Android框架版本,而不是.Net框架版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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