After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 589927 - Building with MonoDevelop on Windows
Building with MonoDevelop on Windows
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
git master
Other Windows
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-27 19:35 UTC by Bertrand Lorentz
Modified: 2010-02-28 18:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Changes to the .csproj files to build with MonoDevelop on Windows (66.33 KB, patch)
2009-07-27 19:50 UTC, Bertrand Lorentz
none Details | Review
Various *.csproj fixes to be able to run Nereid from MonoDevelop on Windows. (25.37 KB, patch)
2010-02-28 03:43 UTC, Ján Sokoly
committed Details | Review

Description Bertrand Lorentz 2009-07-27 19:35:18 UTC
I had to make several changes to the .csproj files in order to build banshee with MonoDevelop on Windows XP.
I was following those instructions :
http://banshee-project.org/download/development/#windows

I'll post a patch with those changes.
Comment 1 Bertrand Lorentz 2009-07-27 19:50:18 UTC
Created attachment 139314 [details] [review]
Changes to the .csproj files to build with MonoDevelop on Windows

I'm using MonoDevelop 2.1.r136446 (latest preview) on Windows XP

Here's a quick summary of the changes in this patch :

1/ Set <TargetFrameworkVersion> to v3.5
I had both .NET 2.0 and 3.5 on my system, and MD was using 2.0, causing compilation to fail

2/ Set <OutputPath> in the various PropertyGroup corresponding to the various build configuration.
It seems MD doesn't care about the <OutputPath> set in the PropertyGroup that has no condition

3/ Remove all reference to MonoPosixHelper. It's a native dll, and MD doesn't like those.

4/ Fix all <HintPath> to point to the bin/ folder

5/ Add <DefineConstants>NET_2_0 in Nereid.csproj
Without this, most of Mono.Data.Sqlite is not built.

6/ A few other small cleanups.

A lot of thoses changes were done manually, because MD enjoys messing things up ;)

I think I haven't broken anything on Linux, but you're welcome to prove me wrong !
Comment 2 Nicolò Chieffo 2009-12-16 00:09:29 UTC
I can confirm that the site instructions won't let you compile banshee on windows. I haven't tested your adjustments yet
Comment 3 Ján Sokoly 2010-02-28 03:43:58 UTC
Created attachment 154876 [details] [review]
Various *.csproj fixes to be able to run Nereid from MonoDevelop on Windows.

A couple of things from Bertrand's patch already made their way to the repository.
My patch fixes all the things which are necessary to run Nereid.
Comment 4 Nicolò Chieffo 2010-02-28 17:38:48 UTC
I would like to add that the page which contains the howto misses one *very* important git command to issue in both banshee/ and banshee/bin/
git config core.filemode false

otherwise git pull won't succeed
Comment 5 Bertrand Lorentz 2010-02-28 17:47:06 UTC
Ján, thanks for picking this up !
Committed.

For the future, make sure that your commit message is wrapped at 72 characters, it makes for easier reading.

Nicolò, that's right. I think we should update the banshee-dev.zip on the website, so that it already includes core.filemode=false in the .git/config files.

I'm closing this, as the initial issues related to MonoDevelop are fixed.
Comment 6 Nicolò Chieffo 2010-02-28 17:55:38 UTC
can you update the banshee-dev.zip or do we need to open another bug?
Comment 7 Bertrand Lorentz 2010-02-28 18:23:09 UTC
(In reply to comment #6)
> can you update the banshee-dev.zip or do we need to open another bug?

I don't think I have the access right to update it, but I'll try to get it done. No need to open a new bug for that.