Getting started: monodevelop on windows, greyed out projects

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/9/2010 8:37:06 PM
Gravatar
Total Posts 10

Getting started: monodevelop on windows, greyed out projects

I'm a freelance programmer, but I'm new to both mojoportal compilation and monodevelop, so I'm hoping this is the correct forum for this question.  I've googled this to death and haven't found any answers.

I just installed the recent monodevelop 2.4 along with the dependencies.  I've downloaded the source for both the 2.3.4.4 and 2.3.4.5 release.  When I open the mojoportal.mono.sln for either release, all of the projects are greyed out.  Attempting a build immediately gives a "Done.  Build Succeeded" in the Build Output window.  Even though they're greyed out, I seem to be able to expand them, however.  Weird.

So I thought maybe it was my monodevelop installation, but I can create a HelloWorld console app that builds and compiles.  It has non-greyed-out projects and much more output in the Build Output window.  It would seem not to be a monodevelop problem (so I'm posting here).

I've taken a peek at the sln and csproj files looking for discrepancies, with no success.  I'm at my wits end, and have no idea how to troubleshoot this further.

Hoping there's help to be had,

Erich

7/9/2010 8:40:06 PM
Gravatar
Total Posts 10

Re: Getting started: monodevelop on windows, greyed out projects

I forgot to mention that my HelloWorld program actually runs correctly also.

7/9/2010 9:26:30 PM
Gravatar
Total Posts 10

Re: Getting started: monodevelop on windows, greyed out projects

Ah, so none of the projects were selected to build for Default|x86, which is the default build configuration.  Very confusing.  So, I'm guessing that the correct build configuration to run is saved off in the developer's own preferences.  Which build configuration should I be running?  I tried a few, but I'm getting tons of errors ("Type or namespace name 'Mono' could not be found." "Type or namespace name 'Npgsql' could not be found." etc...)

Thanks,

Erich

7/9/2010 9:27:17 PM
Gravatar
Total Posts 10

Re: Getting started: monodevelop on windows, greyed out projects

Sorry, that should have been "Debug|x86".  Not "Default|x86"

7/10/2010 9:33:37 AM
Gravatar
Total Posts 18439

Re: Getting started: monodevelop on windows, greyed out projects

Hi Erich,

To be honest I've never used MonoDevelop on Windows and have no intentions to start. I use the latest Mono VMWare image with OpenSuse (on thefree VMWare player), I get the code with Mercurial, and then I build mojoportal.mono.sln using MonoDevelop on Linux.I've never had any problems about choosing a platform, maybe that is an issue only on Windows. For .NET code we don't target specific processors, when compiling mojoPortal code in MonoDevelop we are only compiling to MSIL which is platform neutral and the runtime compiles that down to native code, so typically in .NET development we don't have to worry about the processor.

Hope it helps,

Joe

7/12/2010 12:25:31 PM
Gravatar
Total Posts 10

Re: Getting started: monodevelop on windows, greyed out projects

Thank you, Joe.  That is helpful.

I've also actually managed to get it to compile under Windows monodevelop.  Monodevelop wasn't finding the standard mono libraries (NOT included as part of monodevelop or one of its stated dependencies, it seems -- you have to download it from the mono site), so things like Mono.Security, Mono.Web, Mono.Data.Sqlite, and Npgsql weren't being found.  The correct fix would probably be to find and change the include paths in monodevelop, but I just deleted and recreated the References, pointing them to c:\Program Files\Mono-2.6.4\lib\mono\2.0\*.  I also had to create a .bat file to run the shell script in mojoPortal.Features.UI, because the monodevelop interface wasn't robust enough to allow running the bash.exe with a working directory of c:\cygwin\bin (so bash can find ls.exe and other common commands).  Here's my mdpostbuild.bat:

@echo off
C:
chdir C:\cygwin\bin
bash.exe --login -c "cd '/cygdrive/c/Documents and Settings/eriche/mojo-2-3-4-4-src/mojoPortal.Features.UI'; ./mdpostbuild.sh"

As expected, I get a lot of warnings, but no errors.  Yay!

So now I've got to figure out how to deploy...  :-)

Erich

You must sign in to post in the forums. This thread is closed to new posts.