如何在Visual Studio 11 Beta中使用XNA项目? [英] How can I work with XNA projects in Visual Studio 11 Beta?

查看:86
本文介绍了如何在Visual Studio 11 Beta中使用XNA项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周前发布了Visual Studio 11,现在

Visual Studio 11 was released a few weeks back and now that ReSharper is available for it, I'm ready to start using it!

我正在从事的一些项目是XNA项目.即使重新安装 XNA Game Studio 4 Refresh,这些似乎也无法在VS11 Beta中加载. > 安装后.

Some of the projects I'm working on are XNA projects. These don't appear to load in VS11 Beta, even after reinstalling XNA Game Studio 4 Refresh after installing VS11 Beta.

有人让VS11 Beta与XNA项目一起工作吗?

Has anyone got VS11 Beta working with XNA projects?

推荐答案

我刚开始使用它,它需要一些黑客工具.

I have just gotten it to work, it required some hackery.

这将在安装XNA Game Studio 4.0之后起作用.

This will work after installing XNA Game Studio 4.0.

在以下位置找到Game Studio 4.0目录:

Find the Game Studio 4.0 directory in:

C:\ Program Files(x86)\ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ Extensions \ Microsoft

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft

将目录复制到:

%AppData%\ Local \ Microsoft \ VisualStudio \ 11.0 \ Extensions

%AppData%\Local\Microsoft\VisualStudio\11.0\Extensions

您可以通过在地址栏中输入%AppData,按Enter键,然后导航或填写地址栏的其余部分(由于某些原因,仅粘贴完整的相对URL无效),可以在资源管理器中转到那里

You can go there in Explorer by entering %AppDatain the address bar, hitting enter, and then navigating or filling out the rest of the address bar (for some reason just pasting the full relative url doesn't work)

%AppData%代表您的个人AppData目录.这是您个人目录中的隐藏目录,通常位于C:\ Users \ YourUserName中.

Where %AppData% stands for your personal AppData directory. It is a hidden directory in your personal directory which is usually situated in C:\Users\YourUserName.

您还没有完成,请打开刚刚创建的目录,并使用文本编辑器打开extension.vsixmanifest文件,然后更改此块:

You are not done, open the directory you just created and open the extension.vsixmanifest file with a texteditor and change this block:

<SupportedProducts>
  <VisualStudio Version="10.0">
    <Edition>VSTS</Edition>
    <Edition>VSTD</Edition>
    <Edition>Pro</Edition>
    <Edition>VCSExpress</Edition>
    <Edition>VPDExpress</Edition>
  </VisualStudio>
</SupportedProducts>

对此:

<SupportedProducts>
  <VisualStudio Version="11.0">
    <Edition>Ultimate</Edition>
    <Edition>Premium</Edition>
    <Edition>Pro</Edition>
  </VisualStudio>
</SupportedProducts>

并保存.现在,向上一级目录扩展到Extensions目录,并删除所有存在的缓存文件(不必担心它们会自动重新生成),然后重新启动Visual Studio.现在,您应该可以打开XNA项目了!

And save it. Now go up one directory level to the Extensions directory and remove any cache files that are present (don't worry they are automatically regenerated) and restart Visual Studio. You should now be able to open your XNA projects!

现在这里有一个更流行的最新问题:

There is now a more popular up to date question here: How to install XNA game studio on Visual Studio 2012?

对我来说,它不起作用,该扩展仅在我安装了另一个扩展(更新了nuget)时出现,删除缓存似乎根本没有帮助.

For me it did not work, the extension only showed up when I installed another extension (I updated nuget), removing caches did not seem to help at all.

这篇关于如何在Visual Studio 11 Beta中使用XNA项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆