MCS has replaced DMCS for targeting -sdk:4, and a dmcs bash script exists for back compat. However, a corresponding dmcs.bat file is missing for Mono on windows. This is true as of 3.0.2 beta. The following batch file will do the job:
REM dmcs.bat compatibility shim for mcs
call mcs -sdk:4 %*
*** Bug 4590 has been marked as a duplicate of this bug. ***
We are encountering this. DMCS.bat is not installed by the windows installer.
It would seem like developers mostly build monodevelop themselves. When it is
built DMCS.bat is installed correctly. Maybe that is why more people have not
When using MonoDevelop or XBuild from a command line in Windows, it reports
that dmcs.bat is missing. It can be created by hand of course.
Take, e.g. the attached project. It requires that I set MonoDevelop to use
xbuild instead of its internal building mechanism as the internal mechanism
does not compile resource files. The target .NET framework is also set to Mono
.NET 4.0 which I think is related to using dmcs.bat.
We can provide a test project that demonstrates this but it shouln't be
necessary. DMCS is not getting installed. It needs to be in the installer.
This is a year old and there does not seem to be any movement. Shouldn't it be
This is a duplicate of 7301 also.
I checked the Windows package made today and I see that dmcs.bat is already in the installer.
We got another bug right now where mono isn't being renamed correctly to mono.exe, but I just fixed that.
The goal is for Mono 3.2.3 packages to be correct. It should come out late this week at the earliest, or some time next week.