如何在Visual Studio 11 Beta中使用XNA项目?

编程入门 行业动态 更新时间:2024-10-19 08:50:08
本文介绍了如何在Visual Studio 11 Beta中使用XNA项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

几周前发布了Visual Studio 11,现在 ReSharper可用,我已经准备好开始使用它了!

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!

现在这里有一个更流行的最新问题:如何在Visual Studio 2012上安装XNA游戏工作室?

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项目?

本文发布于:2023-11-12 20:14:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582430.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   如何在   Visual   Studio   Beta

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!