Unable to select target structure for XNA 4.0 games

I have an XNA 4.0 project that I would like to compile with the full .Net 4.0 profile, but by default it is configured on the client profile. The layout of the target’s layout on the Application tab is grayed out.

I 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.

enter image description here

+7
source share
3 answers

I found a workaround:

The .csproj file .csproj an xml element named TargetFrameworkProfile , which is installed in Client . When I remove the word "Client" and thus free the xml node, the project is built as a complete assembly of .Net 4.0.

You can even upgrade your 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> 
+7
source

How do you see that your project is configured for the client environment? I created several XNA projects, but I had no problems with this.

The core of the Target frame is also disabled.

If you get errors, I think you should look for another reason.

Greatings

0
source

In response to the Wouter, here is the correct XML in the .csproj file:

 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <TargetFrameworkProfile></TargetFrameworkProfile> 
0
source

All Articles