[MonoDevelop] Custom dir lib in the bin output
Petit Eric
surfzoid at gmail.com
Wed Apr 23 02:59:08 EDT 2008
2008/4/22 simon.n.lindgren at gmail.com <simon.n.lindgren at gmail.com>:
> This is my first mailing list mail, so please tell me if I'm doing
> something wrong :)
>
>
> tis 2008-04-22 klockan 18:53 +0200 skrev Petit Eric:
>
>
> > 2008/4/22, Gergely Kiss <mail.gery at gmail.com>:
> > > Hi,
> > >
> > > I work on an invoicing application in MonoDevelop and I also needed to
> > > include some libraries in the build directory. The easiest way to do this,
> > > is to mark each required file for deployment by right clicking on them and
> > > selecting Include -> Deploy (may be a bit different, because I'm using MD in
> > > Hungarian). As far as I can understand you, all files in your project are
> > > marked to be deployed and included. That's not the right way. Files, marked
> > > to be deployed will be copied to the build directory while building. If you
> > > mark a file to be included, the file will be sent for the compiler. Only
> > > source files can be compiled this way.
> >
> > thank's
> > I know this and have no problem or error to compil, the deploy
> > function work great, but it also recreat the relative dir from top
> > source dir where library are stored.
> > A simple test to understand it : open your project with MD, create a
> > new dir, let's say "NuxDll", make a right click on this new fresh dir
> > (NuxDll) and say add existing file, select a file, it will be added
> > inside of the NuxDll dir, make a right click on this file and choice
> > to include in deploy.
> > Start compil, if you are with Debug conf, go to your "Top dir
> > solution"/bin/Debug/
> > You will see MD or VS created a NuxDll dir with the file inside, my
> > problem is to store the "deployed" file not in the Debug/nuxDll/" dir
> > but only in the Debug dir.
> > I know, i could only add all file at the top source dir and like this
> > they will be in the Debug dir after compil, but, because there is
> > alays a but, i have very lot of third part file and dont want to
> > poluate my source file tree with all this file.
>
> This works this way for me using rc1.
>
> How about this workaround:
> * Right click the project and select Settings (or similar, I'm using the
> Swedish translation)
> * Go to the "Configuration > Debug > Custom Commands" page
> * In the dropdown select Custom Command
> * In the directory entry, write "${TargetDir}"
> * As command, set mv "NuxDll/* ./"
In this project property, you hare able to directly set the build
output in the config compil (debug/release) without using the macro,
because i write a multiplateform soft, i need to be ablle to use it
also with VS Express, so i'm really carefull with macro and specific
plateform command.
Also at this time i change, from VS, the output dir bin/Debug for
../src/bin/debug and now i have my third party file in my output dir,
but during copy, files was altered because my soft made a SWIG
exception in the wrapper of this third party, if i overwrite this
third party file manualy and restart again it's okay !!
Thank's
>
> I haven't actually tested this since it's working already, but you could
> try if you have no way of upgrading. Or are you using the same version?
I can't remember because i'm at work, but i will have a look, normaly
i 'have the official version who come with mdv2008.1.
>
>
>
> >
> > > If this doesn't help you, then you might have a previous version of
> > > MonoDevelop installed, which doesn't support this feature correctly. In this
> > > case, download and install the latest stable version of MonoDevelop (1.0)
> > > from the project's website:
> > >
> > > http://www.monodevelop.com/Download
> > >
> > > Regards
> > > George
> > >
> > > 2008/4/22 Petit Eric <surfzoid at gmail.com>:
> > >
> > > >
> > > >
> > > > 2008/4/21, Petit Eric <surfzoid at gmail.com>:
> > > > > Dammed gmail it send the version with spel error :
> > > > >
> > > > > 2008/4/21, Petit Eric <surfzoid at gmail.com>:
> > > > >
> > > > > > hi
> > > > > > I write a app with third party lib in C, there a lot of one some
> > > from
> > > > >
> > > > > I write a app with third party lib in C, there is a lot of one, so from
> > > > >
> > > > > > my top dir solution i create a dir, "NuxDll" where i put all this
> > > dll,
> > > > > > after i include them in my solution, like this after a compilation
> > > and
> > > > > > with configure script, the library are copied in the output dir, but
> > > > > > compiler recreate the "NuxDll" in the outpudir like this :
> > > > > > /bin/Debug/Myexe.exe
> > > > > > /bin/Debug/NuxDll/thirdpart.so
> > > > > >
> > > > > > Put i want to pu them in the same dir as the exe, because my program
> > > > >
> > > > > But i want to put them in the same dir as the exe, because my program
> > > > >
> > > > > > have a dll/wrapper who make reference to them.
> > > > > > Is It possible to "tweak" the output dir as in the visual studio
> > > where
> > > > > > we can say compile, copied or data ...?
> > > > > >
> > > > >
> > > > > Sorry
> > > > >
> > > > I find a windows solution, but doesn't work with monodevelop.
> > > > My solution is to add a empty C# project to my solution, give name
> > > > AllDll, add all .so and .dll files from third party C unmanaged code.
> > > > Say to copy in the output from property tab.
> > > > In my main project make a ref to the project AllDll.
> > > > It work as i expect under windows.
> > > > Under Nux with Md, i first have an error about nothing to compile, so
> > > > i added a class1, after no more error but in my bin/Debug dir i have
> > > > only AllDll.dll and .pdb, not all other files, if i look at the
> > > > include property in MD, all file are selected as include/deploy.
> > > > Is it a bug or a not implemented feature?
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Monodevelop-list mailing list
> > > > Monodevelop-list at lists.ximian.com
> > > >
> > > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> > > >
> > >
> > >
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> --
> Simon Lindgren
> http://simonlindgren.pcriot.com
>
>
More information about the Monodevelop-list
mailing list