Skip to content

Instantly share code, notes, and snippets.

@Arefu
Last active April 30, 2024 01:04
Show Gist options
  • Save Arefu/8d902c100009f92c1a7221ac28e7b4fe to your computer and use it in GitHub Desktop.
Save Arefu/8d902c100009f92c1a7221ac28e7b4fe to your computer and use it in GitHub Desktop.
Install XNA On VS2019

Step One

Read this

Step Two

Put this instead.

<Installation InstalledByMsi="false">
    <InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />
    <InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Pro" />
    <InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Premium" />
    <InstallationTarget Version="[12.0,17.0)" Id="Microsoft.VisualStudio.Ultimate" />
    <InstallationTarget Version="[14.0,17.0)" Id="Microsoft.VisualStudio.Community" />
    <InstallationTarget Version="[14.0,17.0)" Id="Microsoft.VisualStudio.Enterprise" />
  </Installation>

Version 17 is for VS19 (Helpful I know)

@KliminVD
Copy link

KliminVD commented Nov 9, 2022

Is it working on VS2022? On create new project, I get "The system cannot find the file specified. (Exception from HRESULT 0x80070002)". I already do gacutil.

I have the same problem now. Did you find any solutions or not yet?

@isral
Copy link

isral commented Nov 9, 2022

Is it working on VS2022? On create new project, I get "The system cannot find the file specified. (Exception from HRESULT 0x80070002)". I already do gacutil.

I have the same problem now. Did you find any solutions or not yet?

I have no solution yet, but you can use Windows Form Project then reference XNA dll.
If you only use Texture2D or SoundEffect, you can use FromStream Method (I tried this).
Or you can use other techniquess to create .xnb, either google it or maybe use MonoGame Content Builder to create .xnb (I didn't try this).

Maybe it's possible to decompile vsix and force it to create .xnb using some googled techniques, but I didn't try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment