开发者

How to reference a specific version of an assembly from an F# script?

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".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜