Solved. I needed to add a few more DLLs, Microsoft.Xna.Framework.Math.dll in particular, in the linking, but I didn't need to open them. The correct way to compile the DLL is:

Fsc.exe -o:xbox.dll --standalone --noframework --define:TRACE --optimize+ --tailcalls+ -r:"C:\Users\Luke\Downloads\fsharp\FSharp-2.0.0.0\Silverlight\5.0\bin\FSharp.Core.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\Microsoft.Xna.Framework.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\Microsoft.Xna.Framework.Graphics.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\Microsoft.Xna.Framework.Graphics.Shaders.dll" -r:"c:\Program Files\Microsoft SDKs\Silverlight\v5.0\Libraries\Client\Microsoft.Xna.Framework.Math.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\mscorlib.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.Core.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.Windows.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.Net.dll" -r:"c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\System.Windows.Xna.dll" --target:library --warn:3 --warnaserror:76 --fullpaths --flaterrors Physicals.fs

By on 8/23/2012 11:31 AM ()

I've got a new project started that uses Intellisense, for some reason only a small amount of the Microsoft.Xna.Framework is available with F#, under C# it is all available. I seem to be using the correct Silverlight 5 XNA DLL for both, what could be the problem?

By on 8/23/2012 10:47 AM ()

for example I initially tried:

1
let sucks () = Vector3(1.0f, 1.0f, 1.0f)
By on 8/22/2012 9:59 PM ()

I have successfully used XNA with F# for a desktop and a WP7 phone game (but not Silverlight).

I would recommend starting with one of the F# XNA project templates available for visual studio. Just search the gallery.

By on 8/29/2012 6:53 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper