locked
Where is Microsoft.Xna.Framework.dll located?

    Question

  • Hello,

    How do I reference Microsoft.Xna.Framework.dll in a C# app?

    I installed Microsoft.Xna.Framework 4.0 refresh but still cannot find Microsoft.Xna.Framework.dll in the install directory.

    I need to use Vector2 objects.

    Any suggestions?

    williamj


    williamj

    Friday, February 17, 2012 2:25 PM

Answers

  • HI,

    the DLL is inside the GAC (after installing the Framework). So you can add a reference simply through the Add Reference dialog, first tab where all libraries are listed from the GAC.

    With kind regards,

    Konrad

    Edit: Just a small addition: You need to have the matching target framework of course. So you need to target .Net Framework 4 in your application and not 3.5 and not the client profile of 4!
    • Edited by Konrad Neitzel Friday, February 17, 2012 2:43 PM
    • Proposed as answer by Horizon_NetMVP Friday, February 17, 2012 5:44 PM
    • Marked as answer by williamj8 Tuesday, February 21, 2012 1:42 PM
    Friday, February 17, 2012 2:34 PM

All replies

  • HI,

    the DLL is inside the GAC (after installing the Framework). So you can add a reference simply through the Add Reference dialog, first tab where all libraries are listed from the GAC.

    With kind regards,

    Konrad

    Edit: Just a small addition: You need to have the matching target framework of course. So you need to target .Net Framework 4 in your application and not 3.5 and not the client profile of 4!
    • Edited by Konrad Neitzel Friday, February 17, 2012 2:43 PM
    • Proposed as answer by Horizon_NetMVP Friday, February 17, 2012 5:44 PM
    • Marked as answer by williamj8 Tuesday, February 21, 2012 1:42 PM
    Friday, February 17, 2012 2:34 PM
  • Hi williamj,

    Welcome to the MSDN forum!

    How is it going with the problem currently?

    You may try the XNA forum as well for XNA development issue to contact more experts on XNA:

    http://forums.create.msdn.com/forums/32.aspx 

    Have a nice day!

    yoyo


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us

    Monday, February 20, 2012 8:26 AM
    Moderator
  • Yoyo:

    Sorry for not responding.  I've been working on quite a bit of content-intensive data entry.

    I am not sure if Vector3 will do the job.

    In short, I need to normalize and multiply a 1D vector and it's been a while since my linear algebra days!

    I will post another question.

    williamj


    williamj

    Tuesday, February 21, 2012 1:45 PM