c:\MyProjects\MyProject\Scripts\load-refs.fsx:
#r "System.dll”
#r "System.Xml.dll”
#r @"c:\MyProjects\OtherProject\bin\Debug\OtherProject.dll”
c:\MyProjects\MyProject\Scripts\load-refs-release.fsx:
#r "System.dll”
#r "System.Xml.dll”
#r @"c:\MyProjects\OtherProject\bin\Release\OtherProject.dll”
c:\MyProjects\MyProject\Scripts\load-proj.fsx:
#load @"c:\MyProjects\MyProject\Scripts\load-refs.fsx”
#r @"c:\MyProjects\MyProject\Debug\bin\MyProject.dll”
c:\MyProjects\MyProject\Scripts\load-proj-release.fsx:
#load @"c:\MyProjects\MyProject\Scripts\load-refs-release.fsx”
#r @"c:\MyProjects\MyProject\Release\bin\MyProject.dll”
4 comments:
Very cool. It is indeed a basic need when doing using classes from FSI.
I had adapted a similar script here : https://gist.github.com/3387537
which you have to run everytime references of the project are changed though. it guarantees that when your scripts compiles, they run
Very cool. It is indeed a basic need when doing using classes from FSI.
I had adapted a similar script here : https://gist.github.com/3387537
which you have to run everytime references of the project are changed though. it guarantees that when your scripts compiles, they run
That might take a bit of the pain away from references in fsi, I tend not to use it as much as other REPL because of that and some other reasons.
Post a Comment