Bug 8813 - Missing DMCS.bat compatibility shim for Mono 3 on Windows
Summary: Missing DMCS.bat compatibility shim for Mono 3 on Windows
Alias: None
Product: Runtime
Classification: Mono
Component: packaging ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Duncan Mak
: 4590 ()
Depends on:
Reported: 2012-12-06 13:47 UTC by Oisin Grehan
Modified: 2013-09-03 18:08 UTC (History)
8 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

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.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Oisin Grehan 2012-12-06 13:47:49 UTC
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
@echo off
call mcs -sdk:4 %*


Comment 1 Zoltan Varga 2013-08-20 18:28:40 UTC
*** Bug 4590 has been marked as a duplicate of this bug. ***
Comment 2 Mark 2013-08-26 14:28:05 UTC
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
reported this. 

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.
Comment 3 Duncan Mak 2013-09-03 17:22:59 UTC
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.
Comment 4 Mark 2013-09-03 18:08:38 UTC
Great. Thanks!