如何在Visual Studio 2015中安装模板和XNA框架?
我发现this page here有助于在Visual Studio 2013中安装XNA框架,但它们不提供Visual Studio 2015的任何下载。
我知道XNA不再由微软开发,但它是一个非常棒的框架,我需要在未来使用。
答案 0 :(得分:31)
XNA 4.0立即刷新完全支持Visual Studio 2015。
您可以在此处找到XNA 4.0 Refresh的下载:https://mxa.codeplex.com/releases/view/618279
它是一个包含Visual Studio扩展和各种先决条件的zip。应首先按README.txt
中所述的顺序安装先决条件:
答案 1 :(得分:24)
我使用了可以downloaded here的XNA Refresh包并且完成了VS 2013的所有步骤。但是我编辑了.vsix文件,因为它不允许你在VS 2015中安装它。它变成了它只是一个ZIP文件。我将 extension.vsixmanifest 中的版本号修改为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>
这使您可以在Visual Studio 2015中安装vsix包!
答案 2 :(得分:8)
适用于Visual Studio 2015:
1-下载此软件包的最新版本 https://mxa.codeplex.com/releases
2-解压缩内容
3-按照自述文件安装除'vsix'以外的所有文件
3-使用Windows zip打开'XNA Game Studio 4.0.vsix'
4-用以下代码替换'extension.vsixmanifest'(由文本编辑器打开)文件的代码。将其保存在桌面上。
5-将修改后的'extension.vsixmanifest'复制到'XNA Game Studio 4.0.vsix'
6-使用Visual Studio运行vsix!
<?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>