开发者

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

开发者 https://www.devze.com 2023-02-01 07:12 出处:网络
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?Y

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

精彩评论

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

关注公众号