How to include framework dll's with my game so the user wont have to download them?

半腔热情 提交于 2019-12-23 05:49:53

问题


In one of my previous threads someone said this was possible, so I did research. I couldn't find anything relevant, can anyone say how to do this, if it is possible?


回答1:


Set the property of every referenced dll Copy Local=true




回答2:


I can see from your other post that the framework you are referring to is the XNA framework.

You're really not supposed to be distribute Microsoft DLLs as loose files! You're supposed to distribute the XNA redistributable only!

Using the DLLs without installing them properly can lead to various problems on end-user machines. And distributing them as loose files is against the EULA!


Speaking as a Microsoft MVP for XNA (yes, we still exist, for now):

The official word from Microsoft is that XNA is still "supported". Basically this means that XNA is not suddenly going to break!!!

The XNA framework installer will remain available from Microsoft's website. (Just like, for example, this decade old framework download). You'll still be able to reference it from your installer (eg: ClickOnce). But, if you don't want to require the download, you can distribute the installer yourself (hence: "redistributable").

It will still install successfully on all current versions of Windows. And should continue to install on future versions of Windows.


The recent hullabaloo you may have heard about XNA is simply that Microsoft has made it public that XNA is no longer in development. All this means is that there will be no future versions. The existing versions will still work!



来源:https://stackoverflow.com/questions/15030497/how-to-include-framework-dlls-with-my-game-so-the-user-wont-have-to-download-th

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