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 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.
Created attachment 3949 [details]
small source to reproduce bug about missing temp dirs.
When compiling Code into memory using the Microsoft.CSharp.CSharpCodeProvider class,
the compiler either fails to create a temp dir or deletes it too early.
Small demo as attachment. The program creates a tiny class source, compiles it as in-memory assembly, runs it, then changes the classname and compiles it again.
(Needed as basis for an application which will regenerate classes over and over again.)
The program keeps generating new classnames 'Blaeh0', 'Blaeh1', ...
The first works, on the second, it fails complaining about a temp dir.
Works fine on MS environment with VS2005 and the 2.0 compiler.
Error message from compiler:
error CS0016: Could not write to file `1c7f9e1b', cause: Could not find a part of the path "/tmp/1f28ac7c/1c7f9e1b.dll".
save file attached, compile using dmcs testcsc.cs , start. Fails on second loop.
Build same on Microsoft VS2005, run, it works.
Forgot version info:
dmcs version 126.96.36.199
mono version 188.8.131.52
debian7 wheezy, kernel 3.8.8, x86_64
Fixed in master