Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I was wondering why I cannot just put all XNA dlls in the same directory as the game.exe, but I need to install that XNA redistributable?

if i try to run it i get an "assembly not found" error http://msdn.microsoft.com/en-us/library/shhcw6y9(v=vs.80).aspx even though that assembly (dll) is there in the same directory.

share|improve this question
add comment

2 Answers 2

up vote 9 down vote accepted

Well installers often do many other things than just copying files. For example XNA redist tries to install/update DirectX on a user computer to required version. I guess it can also write some required information to registry.

However, even if you can just copy XNA files with your game, that, most certainly, will violate license terms.

share|improve this answer
    
Yes you can only redistribute the redistributable not the separate XNA dlls that will violate the license. –  Roy T. Oct 30 '12 at 11:46
    
thanks for the info about the license. actually i am still interested as to why a game doesnt run without the redistributable, though all DLLs are in the same directory as the exe. –  clamp Oct 30 '12 at 13:05
    
@clamp see: "required information to registry" in the answer. –  Joshua Drake Oct 30 '12 at 16:19
add comment

When you have a redistributable, it usually is for not sending the end user the complete engine you used, as the end user only need some specific files. For XNA is the same.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.