[MonoDevelop] how to set up a cross platform build?

Martin Matusiak numerodix at gmail.com
Thu Jan 22 10:16:56 EST 2009


On Thu, Jan 22, 2009 at 3:50 PM, Grzegorz Sobanski <silk at boktor.net> wrote:
> Hi.
>
> * Martin Matusiak <numerodix at gmail.com> [2009-01-22 13:24]:
>> Monodevelop has, but then it'd be awkward to build the app outside
>> linux. And while Monodevelop says it supports Visual Studio
>> import/export, for some reason I can't just open the solution and
>> build it in VS, I get a few errors.
>
> What version of MD are you using?

I'm running MD 2.0 Alpha, packaged by the helpful people at
http://www.getdeb.net/.

> Do you use .sln and .csproj in MD? And can't open them in VS?

I can open the solution just fine. The thing is that I have an
executable and a library. The executable depends on the library. It's
listed as a reference, both in MD and VS. But in VS when I try to
build the project it complains that it can't find the library. I can
create a VS solution from scratch, and set it up exactly the same as
in MD, and then it works fine. But for some reason the MD produced
.sln/.csproj doesn't work just like that.

> My team is using MD and VS with the same solution and project files
> (.csproj) without any problems (using MD trunk).
> So it may be some bug if yours aren't working.
>
>> So what I'm looking for is a way to build the application from the
>> command line, and in such a way that it works across platforms. To
>
> mdtool solution.sln
> works fine under linux. I don't yet know how to build .sln file
> from cmd on windows, because I haven't needed that.
>
>> Does nant work well? Is there something else that works? What's the
>> best practice?
>
> I won't recommend nant. It is much harder to read and write then
> makefile, and doesn't really give you any benefits over it.
> If nant would have a big collection of tasks then maybe... but for
> now using nant was always a burden for me.
> For easy builds .sln and mdtool are sufficient, for some more
> sophisticated ones I always end up doing bash scripting inside nant.
>
> HTH
> silk
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>


More information about the Monodevelop-list mailing list