Hi Rob,

You are right - you use fsc.exe to do this (or a "#load" or "#use" in F# Interactive). Otherwise keep configuration settings in an XML file - Robert Pickering's forthcoming book will have some nice examples of this.

don

By on 3/18/2007 10:56 AM ()

Okay, cool.

Instead of "config file" I should have said "config files for advanced users, like .emacs", where the line between "config file" and "plugin" gets blurred.

Rob

By on 3/18/2007 2:14 PM ()

Hi Rob,

Yep, in this case the .NET standard is a DLL, sometimes with a small XML file acting as a configuration file for the addin. For example a Visual Studio 2005 addin file looks like this, (where the plugin itself is in FSharp.VisualStudio.Session.dll, and the DLL contributes two independent additions to Visual Studio 2005)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<!--Copyright (c) Microsoft Corporation.  All rights reserved.-->
<Extensibility xmlns="<A href="http://schemas.microsoft.com/AutomationExtensibility">http://schemas.microsoft.com/AutomationExtensibility</A>">
        <HostApplication>
                <Name>Microsoft Visual Studio</Name>
                <Version>8.0</Version>
        </HostApplication>
        <Addin>
                <FriendlyName>F# Interactive for Visual Studio</FriendlyName>
                <Description>F# Interactive for Visual Studio addin</Description>
                <Assembly>FSharp.VisualStudio.Session.dll</Assembly>
                <FullClassName>Microsoft.FSharp.Compiler.VSFSI.Connect</FullClassName>
                <LoadBehavior>0</LoadBehavior>
                <CommandPreload>0</CommandPreload>
                <CommandLineSafe>0</CommandLineSafe>
  </Addin>
  <ToolsOptionsPage>
    <Category Name="F# Interactive for Visual Studio">
      <SubCategory Name="General">
        <Assembly>FSharp.VisualStudio.Session.dll</Assembly>
        <FullClassName>Microsoft.FSharp.Compiler.VSFSI.OptionsPage</FullClassName>
      </SubCategory>
    </Category>
  </ToolsOptionsPage>
</Extensibility>
By on 3/19/2007 2:18 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper