I have both XNA 3.1 and 4.0 installed on my system. I can choose a specific version when adding a reference to my F# project, but how do I do th开发者_开发技巧at in F# interactive or in an F# script?
You should be able to do that by specifying the exact path for the assembly:
#r @"C:\path to xna 3.1\library.dll"
Alternatively, you can use #I @"C:\path to xna 3.1"
to include the path with specific version of assemblies and then just use #r "assembly.dll"
.
精彩评论