Stephen Styrchak:The Xbox has its own version of the compact framework, with unique strong names. Why not reference the Xbox 360 reference assemblies, which are provided to you? You'll find mscorlib.dll, system.dll, system.xml.dll, and system.core.dll alongside the XNA Framework assemblies.
Thanks, that worked. I had to call the F# compiler directly, though. Using msbuild just ignored the paths I indicated for the standard assemblies (System.dll, System.Core.dll, FSharp.Core.dll).
The command line I used:
"C:\Program Files\FSharp-1.9.7.8\\bin\fsc.exe" -o:obj\Release\XBox360.dll --standalone --noframework --define:TRACE --optimize+ --tailcalls+ -r:"C:\Program Files\FSharp-1.9.7.8\CompactFramework\2.0\bin\FSharp.Core.dll" -r:"C:\Program Files\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\Microsoft.Xna.Framework.dll" -r:"C:\Program Files\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\mscorlib.dll" -r:"C:\Program Files\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\System.Core.dll" -r:"C:\Program Files\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360\System.dll" --target:library --warn:3 --warnaserror:76 --fullpaths --flaterrors <your F# source files here>
Note that I had to use FSharp.Core.dll built for the compact framework 2.0. If there are differences between the XBox and PC versions of the compact framework, surprising bugs may show up.