[英]Changing the F# tools Visual Studio 2010 uses
I rebuilt F# with few syntax additions. 我用很少的语法添加重建了F#。 I was able to tell VS2010 to use them for F# Interactive and for building, but the code editor still claims I'm making errors (even though the project builds just fine).
我能够告诉VS2010将它们用于F#Interactive和构建,但代码编辑器仍然声称我犯了错误(即使项目构建得很好)。
Is it even possible to change this? 甚至可以改变这个吗? If it is - how?
如果是 - 怎么样?
As far as I know, there is no way to change the IntelliSense service used by F# in Visual Studio. 据我所知,没有办法在Visual Studio中更改F#使用的IntelliSense服务。 The Visual Studio component isn't a part of the open-source release and it has a reference to strongly-signed
FSharp.Compiler.dll
. Visual Studio组件不是开源版本的一部分,它引用了强签名的
FSharp.Compiler.dll
。 I'm not sure if there is some way to trick .NET to load a different assembly instead (specifying bindingRedirect
in app.config
requires the same strong name). 我不确定是否有某种方法可以欺骗.NET加载不同的程序集(在
app.config
指定bindingRedirect
需要相同的强名称)。 If you find some way, let me know :-) I'd like to use it with my modified version of F# too. 如果您找到某种方法,请告诉我:-)我也想将它与我修改过的F#版本一起使用。
If you want to get some IntelliSense for your modified F#, you can use the F# MonoDevelop plugin . 如果您想为修改后的F#获取一些IntelliSense,可以使用F#MonoDevelop插件 。 The plugin is open-source and you can change the F# version used in the
Services/FSharpCompiler.fs
file (see the source on GitHub ). 该插件是开源的,您可以更改
Services/FSharpCompiler.fs
文件中使用的F#版本(请参阅GitHub上的源代码 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.