Compiling FSharpRefactor in Visual Studio 2012

1) Install Visual Studio 2012 SDK
http://www.microsoft.com/en-gb/download/details.aspx?id=30668

2) Install F# Power Pack 4.0 and 2.0
http://fsharppowerpack.codeplex.com/#

3) Copy the tools from Microsoft.FSharpCompiler.Sources to Program Files\FSharpPowerPack-4.0.0.0\bin
FSharp.SRGen.Build.Tasks.dll
FSharp.SRGen.Build.Tasks.dll.config
FSharp.SRGen.targets
FsSrGen.exe
FsSrGen.exe.config

Also copy:
fslex.exe
fsyacc.exe

from your FSharpPowerPack-4.0.0.0 installation folder into your "~\Microsoft Visual Studio 11.0\Common7\IDE" Folder


4) Open Visual Studio 2012, load the solution FSharpRefactor.sln and build

Not all language constructs are supported yet.

Set FSharpRefactorAddIn as the Startup project
In project Properties -> Debug select Start Action -> Start external program and select "~\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" also provide command line arguments:

/RootSuffix exp

to denenv.exe. This will run the experimental version of VS2012 for testing the AddIn
http://msdn.microsoft.com/en-us/library/bb166560.aspx


Press F5

Enjoy

Last edited May 29, 2013 at 6:29 AM by holoed, version 4

Comments

No comments yet.