Bugzilla – Bug 322526
Build error in MonoDevelop 0.12 with single file build
Last modified: 2007-09-15 21:23:51 UTC
---- Reported by scott_moris@sympatico.ca 2006-11-04 00:07:56 MST ---- Please fill in this template when reporting a bug, unless you know what you are doing. Description of Problem: When trying to build a single file in MonoDevelop it gives a creation error because it is trying to make the file in /bin/Debug. In 0.10 I was able to build a single file and it would create a Debug binary in the working directory of the saved source code (./bin/Debug). MD 0.12 does what I previously described. My OS version is Ubuntu Linux 6.10 (Kernel 2.6.17.10 with SMP) with MonoDevelop 0.12 & Mono 1.1.17.1-1ubuntu7 Steps to reproduce the problem: 1. Create a single C# source code file 2. Write valid code (Hello World for an easy example) 3. Tell MonoDevelop to build file 4. Get /bin/Debug folder creation error Actual Results: Output from MonoDevelop: "Building Project: csvread Configuration: Debug Build failed. Can't create project output directory /bin/Debug original exception: System.UnauthorizedAccessException: Access to the path "/bin/Debug" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] at System.IO.Directory.CreateDirectory (System.String path) [0x00000] at System.IO.DirectoryInfo.Create () [0x00000] at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create () at MonoDevelop.Projects.Project.DoPreBuild (IProgressMonitor monitor) [0x00000]" Expected Results: From 0.10 it should be able to build the file to ./bin/Debug, the way it used to build a Debug copy of the source code. How often does this happen? With every single file compile, Solutions compile fine. Additional Information: Very Reproducible. Found single file compilation very handy in 0.10 and am greatly missing it in 0.12. ---- Additional Comments From jacobilsoe@gmail.com 2006-12-01 15:01:30 MST ---- Created an attachment (id=170798) Ensures that the ProjectBasePath is assigned for single file projects ---- Additional Comments From jacobilsoe@gmail.com 2006-12-04 12:53:23 MST ---- Is this one good to commit? I wasn't quite sure that the fix in GuiBuilderService.cs was the best way to do it. Is there a better way? ---- Additional Comments From lluis@ximian.com 2006-12-13 07:15:02 MST ---- Please commit. Thanks! ---- Additional Comments From jacobilsoe@gmail.com 2006-12-13 14:55:21 MST ---- Fixed in SVN revision 69460. Imported an attachment (id=170798) Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Ubuntu 6.10</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other".