无法选择的目标框架,XNA 4.0游戏 [英] Unable to select Target framework for XNA 4.0 games

查看:233
本文介绍了无法选择的目标框架,XNA 4.0游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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>

这篇关于无法选择的目标框架,XNA 4.0游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆