I use emacs to code and compile C# project.
My project folder contain:
--\test
----Helloworld.cs
----make.bat
Then I open Helloworld.cs in a buffer and M-x compile, emacs will compile project for me.
But if my project folder construction is like this:
--\test
----\src
------Helloworld.cs
----make.bat
Then I open Helloworld.cs in a buffer and M-x compile, emacs cannot find make.bat.
I have to locate make.bat for “compile command” in minibuffer.
Any help is welcome.
If
../make.batworks, then indeed it’s a good option. If not, you can usecd ../; ./make.batas your compilation command instead. You could even make Emacs look up the directory hierarchy for amake.batfile and add as many../as needed.