Bug 322526 (MONO79825) - Build error in MonoDevelop 0.12 with single file build
Summary: Build error in MonoDevelop 0.12 with single file build
Status: RESOLVED FIXED
Alias: MONO79825
Product: MonoDevelop
Classification: Mono
Component: general (show other bugs)
Version: 0.10
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: MD Bugs
QA Contact: MD Bugs
URL:
Whiteboard:
Keywords: build
Depends on:
Blocks:
 
Reported: 2006-11-04 07:07 UTC by Scott Morris
Modified: 2007-09-15 21:23 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Ensures that the ProjectBasePath is assigned for single file projects (1.98 KB, patch)
2006-12-01 22:01 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:14:54 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".