Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
I am running an installed Mono 2.11.4 on Windows 7 x64 and MonoDevelop 220.127.116.11.
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.
We hit this bug here: https://github.com/mathnet/mathnet-numerics/issues/63#issuecomment-11217436
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?