What's the difference between a Windows Game Library and a Class Library?

心已入冬 提交于 2019-12-06 18:09:35

问题


What's the difference between a Windows Game Library and a Class Library? Is it just that one starts off by including the XNA Framework?

Also, where are the differences between the Windows / Xbox360 / Zune Game Libraries? They all seem to start off with the same References (Microsoft.Xna.Framework, Microsoft.Xna.Framework.Game).


回答1:


There is no real difference. It is just a project template, it helps you get all the project settings right. Yes, the assembly references are one of the biggies. I don't have it installed to check, but you can use, say, notepad to look at the .vcproj file to see what settings are overridden from their default.




回答2:


I'm a bit late here with my answer, but the main difference between a Windows Game Library project and a simple Class Library project is that a Windows Game Library project can contain content references (they can build in content from referenced XNA "Content Project" projects).

Additionally, they can use XNA's project synchronisation (MSDN) to maintain copies of the project for different platforms, that keep their list of source files in sync.

Finally, these projects get an "XNA Game Studio" properties page, where you can select between the "Reach" and "HiDef" profile, and set a Game Thumbnail. Although these have no effect on libraries, as far as I know - they are only relevant for Game Projects.

XNA Game Projects have the same special features as Game Library Projects. They're just set to output an application instead of a library.

It's worth noting that you don't have to use these special "Game" versions of the project templates that XNA provides. You can still make an XNA game just by referencing the XNA assemblies. But obviously you won't have access to these nice project features, so you will need to come up with alternatives.



来源:https://stackoverflow.com/questions/3256442/whats-the-difference-between-a-windows-game-library-and-a-class-library

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!