无法选择的目标框架,XNA 4.0游戏框架、目标、游戏、XNA

2023-09-03 00:13:02 作者:催眠师非老师不可!

我有一个XNA 4.0的项目,我想将与.NET 4.0中完整的个人资料汇编,但它的默认设置为客户的个人资料。在目标框架的组合框的应用程序选项卡是灰色的。

I have an XNA 4.0 project that I would like to be compiled with the .Net 4.0 Full profile, but it is set to Client profile by default. The Target framework combobox in the Application tab is grayed out.

我已经卸载并重新安装的.Net 3.5,.NET 4.0中和XNA 4.0。可能是什么问题?我们的其他开发机器没有这个问题。

I have uninstalled and reinstalled .Net 3.5, .Net 4.0 and Xna 4.0. What could be the problem? Our other development machines do not have this problem.

推荐答案

我找到了一个解决办法:

I found a workaround:

.csproj的文件称为XML元素 TargetFrameworkProfile 被设置为客户端。当我删除单词客户端,因此空的XML节点,该项目是建立一个完整的.NET 4.0组件。

In the .csproj file is an xml element called TargetFrameworkProfile which is set to Client. When I remove the word Client and thus empty the xml node, the project is built as a full .Net 4.0 assembly.

您可以通过更改 TargetFrameworkVersion 元素中的项目,即使升级到.NET 4.5或更高版本。我们使用这种能够使用超高动力学One摄像机在XNA游戏

You can even upgrade the project to .NET 4.5 or higher by changing the TargetFrameworkVersion element. We use this to be able to use the Kinect One camera in XNA games.

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>