Author Topic: [C#] Guide to installing XNA Game Studio in latest Visual Studio 2017  (Read 1120 times)

0 Members and 1 Guest are viewing this topic.

Justyn

  • Modder
  • Jr. Member
  • *****
  • Posts: 23
    • View Profile
    • Awards
  • Xbox: ipodman365247
  • Steam: 2062
[C#] Guide to installing XNA Game Studio in latest Visual Studio 2017
« on: January 14, 2018, 02:10:45 PM »
This is a step-by-step guide on how to install XNA Game Studio in latest Visual Studio 2017, for Total Miner mod development.
Prerequisites: Install Visual Studio 2017 Community Edition
  • Download XNA Game Studio 4.0.6 (2017).zip and extract it to a folder using your favorite archiving software. (7zip, WinRAR, Windows Explorer)
    Spoiler for Hidden Content:
  • Inside the folder, you will have this file structure:
    Spoiler for Hidden Content:
  • Run DXSETUP.exe inside of the 1. DirectX folder
    Spoiler for Hidden Content:
  • Run XNA Framework 4.0 Redist.msi inside of the 2. XNA Framework 4.0 Redistribution folder
    Spoiler for Hidden Content:
  • Run XNA Game Studio Platform Tools.msi inside of the 3. XNA Game Studio 4.0 Platform Tools folder
    Spoiler for Hidden Content:
  • Run XNA Game Studio Shared.msi inside of the 4. XNA Game Studio 4.0 Shared folder
    Spoiler for Hidden Content:
  • Open the XNA Game Studio 4.0.vsix inside of the root folder.
    Spoiler for Hidden Content:
  • After that, some extra steps are required to get XNA Game Studio functioning properly under VS2017. Open your Windows search bar, and type in "Developer Command Prompt for VS 2017"
    Spoiler for Hidden Content:

    (screenshot is from windows 10 but should function fine on windows 7 too, but please for the love of god update your system before EOL)
  • Right click the developer prompt and run as admin, then enter these three commands one after another.
    xcopy  /E /Y /I "C:\Program Files (x86)\MSBuild\Microsoft\XNA Game Studio" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\XNA Game Studio"
    cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
    gacutil /i Microsoft.Build.Framework.dll

    Spoiler for Hidden Content:
  • Success! If everything went well and you completed every installation, you should be ready to develop mods for Total Miner using XNA Game Studio! You can now open the TotalMinerMods example repo in VS2017 or also start a new XNA Game Studio Library project and make your own mod from scratch!

If you have any problems following this guide, you can post in #modding in the Official Total Miner Discord or pm me there (Justyn#6072)
« Last Edit: January 14, 2018, 10:55:55 PM by Justyn »

Jim

  • Global Moderator
  • Elite Member
  • ******
  • Posts: 742
  • Instagram @mrjamie99
  • Awards 3 years on site Site art contributions/TPs in-game/Contest winners 2 years on site 1 year on site I AM THE LAW!
    • View Profile
    • My photography Facebook page!
    • Awards
  • Xbox: vJamie xD
  • Steam: Jimalene
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #1 on: January 14, 2018, 03:23:49 PM »
Really helpful guide! I'm sure a lot of people will find this useful! Stickied  :)
« Last Edit: January 14, 2018, 04:08:28 PM by Jim »


3rd in the world to unlock Demigods
Jr Moderator given on January 2nd 2017
Global Moderator given on December 27th 2017
YouTube: Jimalene
bob [31|Dec 12:56 PM]: Howdy Jimster

totalminer111

  • Fresh Meat
  • *
  • Posts: 6
  • hello
    • View Profile
    • Awards
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #2 on: January 14, 2018, 04:25:30 PM »
T
he last file wont install?

Justyn

  • Modder
  • Jr. Member
  • *****
  • Posts: 23
    • View Profile
    • Awards
  • Xbox: ipodman365247
  • Steam: 2062
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #3 on: January 14, 2018, 04:26:05 PM »

Justyn

  • Modder
  • Jr. Member
  • *****
  • Posts: 23
    • View Profile
    • Awards
  • Xbox: ipodman365247
  • Steam: 2062
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #4 on: January 14, 2018, 04:34:34 PM »
There were a few issues in the guide which have now been fixed. If you have issues following the guide, run Step 9 again.

totalminer111

  • Fresh Meat
  • *
  • Posts: 6
  • hello
    • View Profile
    • Awards
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #5 on: January 14, 2018, 04:47:41 PM »
the last file

totalminer111

  • Fresh Meat
  • *
  • Posts: 6
  • hello
    • View Profile
    • Awards
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #6 on: January 14, 2018, 04:48:40 PM »
sry i mean the 7th step

Justyn

  • Modder
  • Jr. Member
  • *****
  • Posts: 23
    • View Profile
    • Awards
  • Xbox: ipodman365247
  • Steam: 2062
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #7 on: January 14, 2018, 05:03:57 PM »
sry i mean the 7th step
Did you install Visual Studio?

totalminer111

  • Fresh Meat
  • *
  • Posts: 6
  • hello
    • View Profile
    • Awards
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #8 on: January 14, 2018, 05:09:39 PM »
the first 4 yea but the last 1 will not install

totalminer111

  • Fresh Meat
  • *
  • Posts: 6
  • hello
    • View Profile
    • Awards
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #9 on: January 14, 2018, 05:14:31 PM »

Justyn

  • Modder
  • Jr. Member
  • *****
  • Posts: 23
    • View Profile
    • Awards
  • Xbox: ipodman365247
  • Steam: 2062
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #10 on: January 14, 2018, 05:21:05 PM »
Spoiler for Hidden Content:
You have to extract them first. You cannot run them from inside WinRAR.
Additionally, you have to install Visual Studio so that the .VSIX file is associated to it. You have not done so.
Read the prerequisites, install Visual Studio Community 2017 and then try again.

totalminer111

  • Fresh Meat
  • *
  • Posts: 6
  • hello
    • View Profile
    • Awards
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #11 on: January 14, 2018, 05:30:30 PM »
oh i dident see that i had to install visual studio sry!

Forgeplex

  • Jr. Member
  • **
  • Posts: 52
  • Owner of Forgeplex.
    • View Profile
    • Forgeplex Website (Released Website)
    • Awards
  • Steam: masterbroofficial
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #12 on: February 18, 2018, 06:50:39 PM »
DXSetup? Will that replace my DirectX 11 with a low version? If so then no.
Forgeplex has been revived! See ya soon!
Forgeplex Progress is increasing!
My Twitter: twitter.com/MBroOfficial
The official owner of Forgeplex!
The official Discord: discord.gg/WqYS2mD

AlienizdPixel

  • Tester
  • Supreme Member
  • *****
  • Posts: 2719
  • Hello
  • Awards 3 years on site Members who have unlocked the robotic avatar Awarded to exemplary forum members 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 1 year on site
    • View Profile
    • Awards
  • Xbox: A1ienizdPixe1
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #13 on: February 18, 2018, 10:12:57 PM »
...Will that replace my DirectX 11 with a low version?...
It should not.
-Alionz

Craig

  • Developer
  • Extreme Member
  • ******
  • Posts: 6650
  • Dig Deep
  • Awards Developer 5 years on site 4 years on site 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Members who have unlocked the robotic avatar 1 year on site Day 1 w/25+ posts (4/12/13)
    • View Profile
    • Twitter
    • Awards
  • Steam: tota1miner
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #14 on: February 18, 2018, 11:37:32 PM »
DXSetup? Will that replace my DirectX 11 with a low version? If so then no.
No, DirectX is designed in such a way that newer versions support previous version interfaces.