尝试创建新的MonoGame项目时缺少项目子类型错误 [英] Missing project sub type error when trying to create a new MonoGame project

查看:134
本文介绍了尝试创建新的MonoGame项目时缺少项目子类型错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我使用Visual Studio 2012,每当我尝试创建一个新的MonoGame内容项目时,都会出现此错误...此外,如果我尝试启动Windows Mono项目或Android Mono项目,则不会出现相同的错误,但是无论何时我尝试编译时遇到错误,我未蒸馏Mono和xamarin并尝试安装,但从未解决过该问题,唯一剩下要做的就是卸载Visual Studio 2012,但这可能要花很多时间,所以如果有人在这里可以帮助我在这里,请注意以下错误的链接.

Hello Im using Visual Studio 2012 and whenver I try to create a new MonoGame content project I get this error...Also if I try to start a windows Mono project or a Android mono project I dont get the same error but whenever i try to compile i get errors, i have unstillaed Mono and xamarin and tried installing and that never solved the issue the only thing left to do is uninstall Visual Studio 2012 but that can take a ton of time so if anyone here can help me it will be appreciated here is the link to the following error.

推荐答案

我想我可以为您解决问题,尽管我自己还是不完全了解这个问题,我希望有人对此有所帮助

I think I have a workaround for you, although, I still don't fully understand the issue myself and I'd love someone to shed some light on it.

如果您以纯文本格式打开项目文件,则会看到一个ProjectTypeGuids,如下所示:

If you open up the project file as plain text you will see a ProjectTypeGuids like so:

<ProjectTypeGuids>{9B831FEF-F496-498F-9FE8-180DA5CB4258};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

如果您用Google浏览每个GUID,您会发现其中一个是DotNetProjectSubtype id ="MonoGame",另一个是Windows(C#).

If you Google each GUID you will find that one of them is DotNetProjectSubtype id="MonoGame" and the other is Windows (C#).

据我所知,您可以安全地删除MonoGame之一并继续您的一天.我相信它仅在项目创建时使用.

As far as I can tell you can safely delete the MonoGame one and proceed with your day. I believe it's only used at project creation time.

这篇关于尝试创建新的MonoGame项目时缺少项目子类型错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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