fsx script Visual Studio, setup.fsx (, fs) , script script Visual Studio , .
test.fsx :
module Demo
open System.Xml.Linq
let test () =
let d = XDocument(XElement(XName.Get("foo")))
d.ToString()
module Name ( ), fsx. , , test.fs:
module Main
open Demo
test() |> printfn "%A"
, . , , xUnit ( , #r test.fsx, ):
fsc.exe --target:library test.fsx test.fs
, Visual Studio, , ( ), - fsproj :
<Compile Include="..\Eslewhere\In\Your\Project\Tree\File.fsx">
<Link>File.fsx</Link>
</Compile>
, fsx " ", "", "", . , .
:, , , dll, . fsx, (select, Alt + Enter). , fsx , . , , dll.