Reputation: 331390
I just want to use the assemblies inside my app. Is this possible?
Upvotes: 0
Views: 1331
Reputation: 7126
I'll make this another answer since I want to share a code snippet.
If for some reason VS is hiding the XNA assemblies, you might try adding them to your project manually.
Unload the project in solution explorer, and then right click it and click Edit Project. Then under Project/ItemGroup
, where all the <Reference>
tags are, add the XNA references (just the ones that you need, of course):
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Avatar, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.GamerServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Input.Touch, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Net, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Storage, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Video, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Microsoft.Xna.Framework.Xact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
Upvotes: 2
Reputation: 1151
some of them yes if you install the redistributable, but you will not get the content pipeline and i think xact, thay are only part of the full install
Upvotes: 0
Reputation: 7126
Your users need to install the XNA runtime, but otherwise yes, you can use the XNA assemblies in any typical (32-bit) .NET application.
Upvotes: 3