Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install XNA in Visual Studio 2015 (Preview)

How can I install the templates and the the framework for XNA in Visual Studio 2015?

I found this page here that helps installing the XNA framework in Visual Studio 2013, but they do not offer any downloads for Visual Studio 2015.

I know that XNA is not developed anymore by Microsoft, but it is a really great Framework that I need to use in Future.

like image 486
feedc0de Avatar asked Jan 18 '15 11:01

feedc0de


People also ask

Does XNA work on Mac?

The short answer: Yes, in theory, but don't expect perfection, at least not right off the bat.

Is Microsoft XNA still supported?

As of January 2013, XNA is no longer being developed, and it is not compatible with Windows Runtime (the API for developing Metro-style apps), which was introduced with Windows 8.

What replaced Microsoft XNA?

By the time the next generation of consoles released, XNA had been abandoned, but Monogame came in to take its place, and it had support for PlayStation 4."


3 Answers

XNA 4.0 Refresh Now fully supports Visual Studio 2015.

You can find the download for XNA 4.0 Refresh here: https://mxa.codeplex.com/releases/view/618279

It's a zip which contains a Visual Studio extension and various prerequisites. The prerequisites should be installed first, in the order stated in README.txt:

  1. DirectX
  2. XNA Framework 4.0 Redistribution
  3. XNA Game Studio 4.0 Platform Tools
  4. XNA Game Studio 4.0 Shared
like image 91
Lee Stott Avatar answered Sep 19 '22 11:09

Lee Stott


EDIT: This one is obsolete; please see Lee Stott's answer above!

I used the XNA Refresh package that can be downloaded here and did all the steps exactely as for VS 2013. But I edited the .vsix file because it doesn't let you install it in VS 2015. It turns out it is simply a ZIP-File. I fixed the version numbers in extension.vsixmanifest to 14.0.

<Installation InstalledByMsi="false">   <InstallationTarget Version="14.0" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />   <InstallationTarget Version="14.0" Id="Microsoft.VisualStudio.Pro" />   <InstallationTarget Version="14.0" Id="Microsoft.VisualStudio.Premium" />   <InstallationTarget Version="14.0" Id="Microsoft.VisualStudio.Ultimate" /> </Installation> 

This lets you install the vsix package in Visual Studio 2015!

like image 30
feedc0de Avatar answered Sep 18 '22 11:09

feedc0de


Works fine with Visual Studio 2015 :

1- Download the latest version of this package https://mxa.codeplex.com/releases

2- Unzip the content

3- Follow the readme and install all files except the 'vsix'

3- Open the 'XNA Game Studio 4.0.vsix' with the Windows zip

4- Replace code of the 'extension.vsixmanifest' (opened by text editor) file by the following one. Save it on your desktop.

5- Copy the modified 'extension.vsixmanifest' into 'XNA Game Studio 4.0.vsix'

6- Run the vsix with Visual Studio !

<?xml version="1.0" encoding="utf-8"?>
<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">
<Identifier Id="bcc70cc4-703d-4f8b-98f5-d96bfc71335b">
<Name>XNA Game Studio 4.0</Name>
<Author>Microsoft</Author>
<Version>1.4.12</Version>
<Description xml:space="preserve">XNA Game Studio Package provides game development experiences for Xbox 360, Windows, and Windows Phone.</Description>
<Locale>1033</Locale>
<Icon>Package.ico</Icon>
<InstalledByMsi>false</InstalledByMsi>
<SupportedProducts>
  <VisualStudio Version="10.0">
    <Edition>Ultimate</Edition>
    <Edition>Premium</Edition>
    <Edition>Pro</Edition>
    <Edition>IntegratedShell</Edition>
  </VisualStudio>
  <VisualStudio Version="11.0">
    <Edition>Ultimate</Edition>
    <Edition>Premium</Edition>
    <Edition>Pro</Edition>
    <Edition>IntegratedShell</Edition>
    <Edition>VSLS</Edition>
  </VisualStudio>
  <VisualStudio Version="12.0">
    <Edition>Ultimate</Edition>
    <Edition>Premium</Edition>
    <Edition>Pro</Edition>
    <Edition>IntegratedShell</Edition>
    <Edition>VSLS</Edition>
  </VisualStudio>
  <VisualStudio Version="14.0">
    <Edition>Ultimate</Edition>
    <Edition>Premium</Edition>
    <Edition>Pro</Edition>
    <Edition>IntegratedShell</Edition>
    <Edition>VSLS</Edition>
  </VisualStudio>
</SupportedProducts>
<SupportedFrameworkRuntimeEdition MinVersion="4.0" />
</Identifier>
<References>
<Reference Id="Microsoft.VisualStudio.MPF" MinVersion="10.0">
  <Name>Visual Studio MPF</Name>
</Reference>
</References>
<Content>
<VsPackage>XNA Game Studio 4.0.pkgdef</VsPackage>
<VsPackage>Microsoft.Xna.GameStudio.Core.pkgdef</VsPackage>
<VsPackage>Microsoft.Xna.GameStudio.pkgdef</VsPackage>
<VsPackage>Microsoft.Xna.VisualBasic.PropertyPages.pkgdef</VsPackage>
<ItemTemplate>ItemTemplates</ItemTemplate>
<ProjectTemplate>ProjectTemplates</ProjectTemplate>
<Assembly AssemblyName="Microsoft.Xna.GameStudio.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d">Microsoft.Xna.GameStudio.Core.dll</Assembly>
<Assembly AssemblyName="Microsoft.Xna.GameStudio, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d">Microsoft.Xna.GameStudio.dll</Assembly>
<Assembly AssemblyName="Microsoft.Xna.VisualBasic.PropertyPages, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d">Microsoft.Xna.VisualBasic.PropertyPages.dll</Assembly>
</Content>
</Vsix>
like image 45
CSharpCreations Avatar answered Sep 19 '22 11:09

CSharpCreations