[MonoDevelop] Isolate project directory from build products directory

Oskar Berggren oskar.berggren at gmail.com
Wed Mar 9 14:30:02 EST 2011


2011/3/9 Michael Hutchinson <m.j.hutchinson at gmail.com>:
> On Fri, Mar 4, 2011 at 7:55 AM, guivho <monodevelop at vanhoecke.org> wrote:
>> Is it somehow possible to specify the path for the bin directory under
>> a different root?
>>
>> More precisely, I would like to create my projects in e.g. the ~/Mono
>> directory, and have the build products (intermediate as well as final)
>> created in e.g. ~/MonoBuildProducts.
>>
>> So when creating a new app MyApp under ~/Mono/MyApp, I'd like the
>> build directory to be located at ~/MonoBuilsProducts/MyApp/bin.
>>
>> The preferred approach would be fully automatic, but it would already
>> help if I could somehow tell MonoDevelop to use that directory as
>> target.
>>
>> The main advantage of such approach provides for a clean directory for
>> backup purposes, so that reproducable bits would not be backed up. One
>> could then even consider to use a ~/DropBox/Mono folder and have all
>> sources backud up without feeding reproducable stuff into DropBox.
>>
>> The idea stems from Apples XCode which provides both a 'Build Products
>> Path' and a 'Intermediate Build Files Path' setting.
>>
>> Maybe there are some internal settings that can be setup to achieve
>> this result.
>
> You might be able to achieve this using environment variables to
> control MSBuild intermediate and output dirs, when using xbuild as the
> MD build engine, but I don't think it's an important case for us to
> support in MD itself, and it would be ~impossible to support across
> all the build systems we support.
>
> --
> Michael Hutchinson
> http://mjhutchinson.com
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>


For msbuild you can set the OutDir property, e.g.: /p:OutDir=Build/
Relative paths are relative to the project file IIRC. I suppose this
should work similarly in xbuild.

/Oskar


More information about the Monodevelop-list mailing list