fsprojects / zarchive-sublime-fsharp-package

F# development tools for SublimeText 3
32 stars 7 forks source link

compile project from editor #21

Open guillermooo opened 9 years ago

guillermooo commented 9 years ago

@rneatherway @rojepp

How does this work on other editors? Do they run msbuild on behalf of the user? Fake? Both? Is there a standard approach?

rneatherway commented 9 years ago

There is not a standard approach. In Emacs, when an F# file is loaded it look for a project or solution file nearby or in an enclosing directory. Applying msbuild to this is offered as a default compilation command. On *nix this is just xbuild. On Windows it looks for msbuild in the usual places: https://github.com/fsharp/emacs-fsharp-mode/blob/master/fsharp-mode-util.el

kjnilsson commented 9 years ago

Vim works similarly. On Mon, 25 May 2015 at 15:30, Robin Neatherway notifications@github.com wrote:

There is not a standard approach. In Emacs, when an F# file is loaded it look for a project or solution file nearby or in an enclosing directory. Applying msbuild to this is offered as a default compilation command. On *nix this is just xbuild. On Windows it looks for msbuild in the usual places: https://github.com/fsharp/emacs-fsharp-mode/blob/master/fsharp-mode-util.el

— Reply to this email directly or view it on GitHub https://github.com/fsharp/sublime-fsharp-package/issues/21#issuecomment-105232532 .

guillermooo commented 9 years ago

@rneatherway I believe you mentioned somewhere else that fsac would provide the path to msbuild as well. Is this in already?

rneatherway commented 9 years ago

It's not in yet: https://github.com/fsharp/FsAutoComplete/issues/23

I just haven't had time. If anyone does, I will do the review and release. Otherwise hopefully I will get to it soon.