I am in the very first step of using Emacs as my programming environment. I run it in DOS Prompt using emacs -nw and do the development there. It’s quite unbelievable, that I can do coding of J2EE and J2ME just using Emacs and its Eshell/Shell.
And now about using it for Visual Studio development.
Currently, I am working in a simple OpenGL application using Visual C++.NET 2008.
I haven’t try to build that application from command line, is it possible?
If in J2EE and J2ME, we had the build.xml (that is an ant build file), but what is the analogue of that in Visual Studio.NET solution?
I already compiled a simple Visual Studio Console program using Command Line. It works, but what about a complete set of project???
Thanks!
Lots of comments:
There’s no need for you to use
-nw; Emacs works fine with windows.The analogue to build.xml is xxxxxx.sln, combined with the dependent project files, which are zzzzzzz.csproj. OF course replace xxxx and zzzzz with your solution and project names.
you don’t need the eshell or shell to compile. You can run the compile from within emacs using
M-x compilewhich is often bound to a key combo for easy access. Mine isC-xC-ebut I don’t know if that is a broad convention or just my choice.The
next-errorfunction works fine to move point to the next error that is reported in the compiler output. You may need a regex for error strings. I use this:(add-to-list ‘compilation-error-regexp-alist-alist
‘(msvc “^[ \t]\([A-Za-z0-9\.][^(]\.\(cpp\|c\|h\)\)(\([0-9]+\)) *: +\(error\|fatal error\|warning\) C[0-9]+:” 1 3)))
When there is already an msvc entry, you may need to