Download Microsoft XNA Framework Redistributable 4.0 Refresh from Official Microsoft Download Center
Note: XNA 4.0 requires at least .NET 4.0 and DirectX 9.
colorsquare\
sources directory, for example using lessmsi. The complete list of required assemblies is:
Total size: < 3 MB
cd
into the sources directory on the command line
cd colorsquare
C:\Windows\Microsoft.Net\Framework\v4.0.30319\csc.exe /r:C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll,C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Game\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Game.dll,C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll /target:winexe /out:colorsquare.exe *.cs
C:\Windows\Microsoft.Net\Framework\v4.0.30319\csc.exe ^
/r:C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll,^
C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Game\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Game.dll,^
C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll ^
/target:winexe /out:colorsquare.exe *.cs
C:\Windows\Microsoft.Net\Framework\v4.0.30319\csc.exe ^
/lib:"C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86" ^
/r:Microsoft.Xna.Framework.dll,Microsoft.Xna.Framework.Game.dll,Microsoft.Xna.Framework.Graphics.dll ^
/target:winexe /out:colorsquare.exe *.cs
csc.exe
on the %PATH%
first, and assuming the DLLs have been copied to the sources directory
set PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319\
csc /r:Microsoft.Xna.Framework.dll,Microsoft.Xna.Framework.Game.dll,Microsoft.Xna.Framework.Graphics.dll /target:winexe /out:colorsquare.exe *.cs
colorsquare
Submit a comment or correction
10 Feb 2019 | Update some of the links |
24 Apr 2013 | Corrected compile commands for redistributable-only vs. game studio |
23 Apr 2013 | Posted |