无法更改PCL库目标框架 [英] Unable to alter PCL library Target Frameworks
问题描述
我正在运行Visual Studio 2012以及Xamarin.iOS,并具有各自的最新版本.我有可移植类库,在其中我想选择最新的"Xamarin.iOS"发行版作为构建目标(而不是MonoTouch).在Visual Studio中,我打开项目的属性,选择库"选项卡,然后单击目标框架"下的更改".但是,我无法修改任何复选框.我更改的所有复选框都会立即关闭更改目标框架"对话框.如果我更改了其中一个下拉列表(例如,从.NET 4.0+更改为4.5),则当我单击确定"时,更改不会反映在目标框架"列表中.
I am running Visual Studio 2012 plus Xamarin.iOS with the latest version of each. I have Portable Class Libraries in which I want to select the latest "Xamarin.iOS" release as a build target (instead of MonoTouch). In Visual Studio I open up the Project's Properties, select the Library tab, and click on Change under Target Frameworks. However, I am unable to modify any of the checkboxes. Any checkbox I change instantly closes the "Change Target Frameworks" dialog. If I change one of the dropdowns (for example, change from .NET 4.0+ to 4.5) then when I go to click OK the changes do not get reflected in the Target Frameworks list.
有人知道如何解决此问题吗?
Anyone have any idea how to resolve this issue?
推荐答案
我能够通过更改csproj文件XML中的TargetFrameworkProfile来解决此问题.我在不再受支持的Profile104上,因此我手动删除了它,并将其留在XML中,然后能够重新添加配置文件目标(使用对话框将其放到Profile136之后).
I was able to resolve this by changing the TargetFrameworkProfile in the XML of the csproj file. I was on Profile104 which is no longer supported, so I manually removed this and left this blank in the XML, and then was able to re-add the profile targets (after using the dialog it put me on Profile136).
这篇关于无法更改PCL库目标框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!