我一直在尝试编译一些我在f#中编写的库,以在我为xbox360编写的游戏中工作,除非我一直收到一个错误,说"The module/namespace 'System.Net.WebRequest' from compilation unit 'System' did not contain the namespace, module or type 'WebRequest'
。为xbox360编译f#
我一直在使用编译它是命令
"C:\Program Files (x86)\Microsoft F#\v4.0\fsc.exe" -o:obj\Release\XBox360.dll --standalone --noframework --define:TRACE --optimize+ --tailcalls+ -r:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Xbox360\mscorlib.dll" -r:"C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Xbox360\System.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\FSharp.Core.dll" --target:library --warn:3 --warnaserror:76 --fullpaths --flaterrors somefile.fs
有谁知道的方式来解决,或者避免这个问题?
有没有办法解决这个问题? (我使用的是VS 2012,并在项目MSBuild文件中播放,直到我得到了这个;请参阅我的问题[here](http://stackoverflow.com/questions/12993514/target-the-xna-framework-in-ordinary -visual-studio-2012-project)) – Jwosty
不幸的不是。即使你可以通过创建你自己版本的DLL或其他东西来编译它,MS也不会让你与媒体服务器(用于流媒体音乐等)或其实时服务之外的其他任何东西进行通信。 –
为什么它不起作用,如果你禁用WebRequest的东西,所以唯一的方法来与其他计算机沟通_would_将是你提到的? – Jwosty