How to include XNA libraries in a C # project?

I am trying to make a game in C #. I want to include XNA libraries there (e.g. Microsoft.XNA.Framework.Graphics). But, if I do this, I get an error:

The XNA type or namespace does not exist in the Microsoft namespace.

Can anybody help?

+3
source share
5 answers

First of all, make sure that you are using the correct case, the namespace and assembly names are Xnanot Xna. If this does not work:

. , ( Visual Studio 2010) XNA Game Studio . , .

XNA, Visual Studio " ".

DLL , , , , .NET 4.0 ( XNA 4.0).

+2

XNA. -, XNA Game-Studio Visual Studio .

, (, XNA Game Studio), Microsoft.Xna.Framework.dll .

, . , , WinForm - .

+1

"", () , . XNA.DLL.

+1

In the solution explorer. Go to the link, add the link, and then add the link Microsoft.Xna.Framework.Xact 4.0. It is somewhere down below if you leave it unsorted. Then you can access the Audio Engine class.

I had the same problem and then I found it a third time. Worked well for me. Hope this helps.

0
source

Instead of lamenting the link list in Visual Studio, simply download the DLL from HERE or the direct link: https://www.dllme.com/dll/files/microsoft_xna_framework_dll.html

-2
source

All Articles