Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distributing F# based libraries

I have a program written c# that references an assembly written in F#. If I want to distribute it, I need to include the FSharp.Core.dll assembly right? (Assuming the user didn't install F# already)

Problem is, Visual Studio doesn't copy this dll (or any other related F# dlls) when I build my solution. How can I instruct it to copy the dll to the output folder?

Update: I'm currently just manually copying over the dlls for deployment. I was just wondering why this is needed at all.

like image 672
HS. Avatar asked Dec 14 '09 08:12

HS.


1 Answers

In VS, if you right-click on the assembly reference to FSharp.Core in the C# project, select "properties", and change "Copy Local" to "True", then FSharp.Core.dll will be copied to the output directory.

(This is generally true for any DLL that's installed in the GAC on your development machine but which is not installed on the deployment machine.)

like image 131
Brian Avatar answered Nov 09 '22 06:11

Brian