sublime-fsharp-package icon indicating copy to clipboard operation
sublime-fsharp-package copied to clipboard

compile project from editor

Open guillermooo opened this issue 9 years ago • 4 comments

@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?

guillermooo avatar May 25 '15 10:05 guillermooo

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

rneatherway avatar May 25 '15 13:05 rneatherway

Vim works similarly. On Mon, 25 May 2015 at 15:30, Robin Neatherway [email protected] 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 .

kjnilsson avatar May 27 '15 05:05 kjnilsson

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

guillermooo avatar Jun 23 '15 15:06 guillermooo

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.

rneatherway avatar Jun 23 '15 15:06 rneatherway