none
Using XNA 4.0 with Visual Studio 2010

    Question

  • Yes, I know, this is 2016 and XNA has been dead for a while. But, I need to create a quick proof of concept demo that is very similar to a project I did in 2011 using XNA and Visual Studio 2008. Now I need to do it again, but now I'm using Visual Studio 2010.

    My problem is that when I try to create a new XNA 4.0 Windows game project and I do the following:

    From Visual Studio 2010 I chose New project, XNA, XNA 4.0 Windows game and get the following error:

    "A problem was encountered creating the sub project 'WindowsGame1'. Object reference not set to an instance of an object."

    Any idea?

    Tuesday, August 23, 2016 12:27 PM

Answers

  • When I check the About Box for my Visual Studio 2010 it says:

    Version 10.0.40219.1 SP1 Rel

    I assume this means Service Pack 1.

    I solved the problem by using the tool described in this forum:

    https://blogs.msdn.microsoft.com/astebner/2009/04/10/xna-game-studio-cleanup-tool-users-guide/

    Wednesday, August 24, 2016 11:47 AM

All replies

  • Hi Zetar,

    Thank you for posting in MSDN forum.

    There is a clarification with you:

    Since you are using Microsoft XNA Game Studio 4.0  and VS 2010, it needs the latest updates for Visual Studio from Microsoft Update

    have you installed the Visual Studio 2010 Service Pack 1?

    http://www.microsoft.com/en-sg/download/details.aspx?id=23691

    If not, please apply this SP1 to your VS, then try to create a new XNA 4.0 project to see if it works.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Wednesday, August 24, 2016 7:38 AM
    Moderator
  • When I check the About Box for my Visual Studio 2010 it says:

    Version 10.0.40219.1 SP1 Rel

    I assume this means Service Pack 1.

    I solved the problem by using the tool described in this forum:

    https://blogs.msdn.microsoft.com/astebner/2009/04/10/xna-game-studio-cleanup-tool-users-guide/

    Wednesday, August 24, 2016 11:47 AM
  • Hi Zetar,

    Glad to hear you have had your issue resolved.

    And it's really kind of your  for sharing us your solution and result here.

    Please mark  your reply as the answer, it will benefit to other community members who have the same issue. It will be easier for them to search the solution.

    Have a nice day:)

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Thursday, August 25, 2016 2:26 AM
    Moderator