我该如何编译这个项目? (Gleed2D)

时间:2012-03-24 00:44:32

标签: c# visual-studio compilation xna

我在这里下载了这个项目的.zip:

https://github.com/SteveDunn/Gleed2D

我安装了Visual Studio 2010 Ultimate Trial并安装了XNA 4.0。但是当我尝试打开包含的Gleed2D_Tool.sln文件时,我收到错误消息:

C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Ui\Gleed2D.csproj : error  : The project file 'C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Ui\Gleed2D.csproj' cannot be opened.

The project type is not supported by this installation.

C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Core\Gleed2D.Core.csproj : error  : The project file 'C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Core\Gleed2D.Core.csproj' cannot be opened.

The project type is not supported by this installation.

C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Plugins\Gleed2D.Plugins.csproj : error  : The project file 'C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Plugins\Gleed2D.Plugins.csproj' cannot be opened.

The project type is not supported by this installation.

C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Plugins.Krypton\Gleed2D.Plugins.Krypton.csproj : error  : The project file 'C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.Plugins.Krypton\Gleed2D.Plugins.Krypton.csproj' cannot be opened.

The project type is not supported by this installation.

C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.InGame\Gleed2D.InGame.Windows.csproj : error  : The project file 'C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.InGame\Gleed2D.InGame.Windows.csproj' cannot be opened.

The project type is not supported by this installation.

C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.InGame.Krypton\Gleed2D.InGame.Krypton.Windows.csproj : error  : The project file 'C:\Users\Admin\Desktop\SteveDunn-Gleed2D-0ffaae5\SteveDunn-Gleed2D-0ffaae5\src\Gleed2D.InGame.Krypton\Gleed2D.InGame.Krypton.Windows.csproj' cannot be opened.

The project type is not supported by this installation.

我被这个令人难以置信的无用错误消息所困扰。有没有人知道我需要做些什么才能编译?

2 个答案:

答案 0 :(得分:1)

您列出的项目文件中的项目类型是C#和XNA

<ProjectTypeGuids>{6D335F3A-9D43-41b4-9D22-F6F17C4BE596};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

正如Mataniko建议的那样,你可能错过了C#安装作为visual studio的一部分,或者XNA没有正确安装。

http://onlinecoder.blogspot.ca/2009/09/visual-studio-projects-project-type.html处有一个项目类型GUID列表。当然,列表可能不完整,因为任何人都可以使用带有新GUID的新项目类型扩展visual studio。

答案 1 :(得分:0)

安装Visual Studio时是否安装了C#?你能创建一个XNA项目吗?我有相同的设置,它打开很好,所以尝试先做。