Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the F# tools Visual Studio 2010 uses

I rebuilt F# with few syntax additions. 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).

Is it even possible to change this? If it is - how?

like image 378
Ramon Snir Avatar asked Mar 31 '11 20:03

Ramon Snir


People also ask

What does changing the f-stop do?

Changing the f-number changes the size of the aperture, changing the amount of light that passes through the lens. The higher the f-number, the smaller the aperture and the less light that passes through the lens; the lower the f-number, the larger the aperture and the more light that passes through the lens.

How do you change the f value?

Turn the control dial right or left according to the f-stop number you wish to use. Turning the dial right will give you a smaller aperture and turning it left will give you a wider aperture.

What happens if you change the aperture?

When you increase the aperture value the aperture opening inside the lens gets smaller, reducing the amount of light that can enter the camera. Similarly, when you decrease the aperture value the opening gets bigger, allowing more more light to enter the camera.

Can you change the f-stop?

Many cameras have a physical dial that can be turned to adjust aperture (measured in f-stops) — it's ok if yours doesn't have a dial, just check your camera's general settings. Once you've found where the f-stop settings are, you can switch between smaller and larger f-numbers to play with the: Depth of field.


1 Answers

As far as I know, there is no way to change the IntelliSense service used by F# in Visual Studio. The Visual Studio component isn't a part of the open-source release and it has a reference to strongly-signed 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). If you find some way, let me know :-) I'd like to use it with my modified version of F# too.

If you want to get some IntelliSense for your modified F#, you can use the F# MonoDevelop plugin. The plugin is open-source and you can change the F# version used in the Services/FSharpCompiler.fs file (see the source on GitHub).

like image 129
Tomas Petricek Avatar answered Oct 13 '22 13:10

Tomas Petricek