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.
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
Our sincere thanks to everyone who has contributed on this bug tracker
over the years. Thanks also for your understanding as we make these
adjustments and improvements for the future.