It appeared to be hardcoded `mcs` as the compiler.
How did you "change the compiler" I have no clue what you did wrong without further information.
Edit `filetypes.cs` and change the compiler from `mcs` to `csc`? I keep the `filetypes.cs` on Geany installation directory intact. Instead of copy it into `%appdata%\geany\filedefs` and modify it here. It doesn't work. I tried to comment out `C#=*.cs;` in `%appdata%\geany\filetype_extensions.conf`. Nothing worked. It will always force `mcs` as the compiler.
Why not use "Menu->Build->Set build commands" in the GUI. Remove all the changes and extra files and try that.
Tried. Not work. `mcs` is hardcoded as the compiler.
What worked:
Edit `filetypes.cs` and remove this block:
``` [build_settings] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # be careful following settings are untested compiler=mcs /t:winexe "%f" /r:System,System.Drawing run_cmd=mono "%e.exe" ```
Replace it with something like this:
``` [build-menu] FT_00_LB=_Compile FT_00_CM=csc /t:winexe "%f" /r:System,System.Drawing FT_00_WD= FT_01_LB=_Build FT_01_CM=csc /t:winexe "%f" /r:System,System.Drawing FT_01_WD= EX_00_LB=_Run EX_00_CM="./%e" EX_00_WD= ```
As far as I know, the setting via "Menu->Build->Set build commands" is per file or per session. I want to change the compiler to `csc` for all and, better yet, out of the box by just copying a `filetypes.cs` file into `%appdata%\geany\filedefs`.
Closed #3753 as resolved.
As far as I know, the setting via "Menu->Build->Set build commands" is per file or per session.
No, its per user, and as such should override settings in the filetype file. Did you have a project open? That also has build commands.
See [the wiki](https://wiki.geany.org/howtos/configurebuildmenu) for details.
github-comments@lists.geany.org