Create a free account to remove all ad content.

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

0 Members and 1 Guest are viewing this topic.

Justyn

  • Modder
  • Jr. Member
  • *
  • Posts: 23
    • View Profile
  • Xbox: ipodman365247
  • Steam: 2062
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: 878
  • Instagram @mrjamie99
    • View Profile
    • My photography Facebook page!
  • Xbox: Jiimalene
  • 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
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
  • 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
  • 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
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
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
  • 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
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
Re: Guide to installing XNA Game Studio in latest Visual Studio 2017
« Reply #9 on: January 14, 2018, 05:14:31 PM »