Bug 7301 - Batch file dmcs,bat appears to missing
Summary: Batch file dmcs,bat appears to missing
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-09-19 13:35 UTC by mbird14241+bugzilla
Modified: 2013-08-26 12:52 UTC (History)
3 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 for Bug 7301 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description mbird14241+bugzilla 2012-09-19 13:35:19 UTC
I am running an installed Mono 2.11.4 on Windows 7 x64 and MonoDevelop

When run xbuild against the solution file for a MonoDevelop created "Console App" targeting .Net 4.0 (or .net 3.5 with an override /property:TargetFrameworkVersion="v4.0" on the command line), I get the following error

C:\PROGRA~2\MONO-2~2.4\lib\mono\4.0\Microsoft.CSharp.targets: error : Error executing tool 'C:\PROGRA~2\MONO-2~2.4\bin\dmcs.bat': ApplicationName='C:\PROGRA~2\MONO-2~2.4\bin\dmcs.bat', CommandLine='/noconfig @C:\Windows\TEMP\tmp503812b6.tmp', CurrentDirectory='C:\MonoTestApp', Native error= The system cannot find the file specified.

The Mono bin directory contains a bash script called dmcs but no Windows equivalent batch file. If I create a file called dmcs.bat containing the following line

mcs -sdk:4 %*

xbuild will then compile the solution.  It looks like gmcs will have the same issue.
Comment 1 Ben Winkel 2012-12-10 17:48:35 UTC
We hit this bug here: https://github.com/mathnet/mathnet-numerics/issues/63#issuecomment-11217436
Comment 2 Mark 2013-08-26 12:52:36 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 shoulnt be necessary. 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 fixed?