Missing files in source tree

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.
2/10/2009 12:41:06 PM
Gravatar
Total Posts 5

Missing files in source tree

I'm trying to use mojoPortal for a new project I have started, and have had no troubles downloading and getting it running.  Now that it is running however, I need to check the entire solution into our source control.  We are using VSTS currently, and when attempting to check in, I get several warnings of missing files.  At first it simply complained about some missing dll references in the Web bin folder, this turned out to be that I had not installed MySQL, PostGres, Firebired, etc... 

After that however, I still get many more missing file errors.  One was located mojoPortal.Web.ClientData.tiny_mce.aspx, and I was also missing all files in the folder mojoPortal.Web.Data.htmlTemplates.readyset -  I'm sure there are others I haven't listed, and I'm sure there's more to come.

I've had this same issue with the source zip download from CodePlex, as well as downloading from subversion directly.  Upon removing these files, the entire solution still builds.  Is it safe to remove project references to these files in order to commit inside TFS?  If not, where could I could a fully complete source tree?

Thank you all for any help you can provide, and great work with the project, I really look forward to working with mojoPortal.

2/10/2009 12:53:30 PM
Gravatar
Total Posts 18439

Re: Missing files in source tree

Yes, its safe to remove those. Not using TFS I've never run into this problem but I confirm that the VS project had some referecnnes to no longer exsiting files under ClientScript/tiny_mce and under /Data/HtmlTemplates/readyset.

I just removed them from my copy so it will get cleaned up in our svn repository.

Not sure about the /bin references, I'm sure you can delete them but its not something I can fix permanently because VS seems to create those project references. I did remove the references to missing xml files in the /bin.

Really the bin folder should not be part of the commit, at least in svn we don't have the /bin folder under source control as those files are supposed to be generated by building the code. Maybe its differentin TFS but if they have a way to excluse the bin folders I would as well as files like user.config and .csproj.user files which should be user specific and not in the code repository.

Hope it helps,

Joe

2/10/2009 12:58:49 PM
Gravatar
Total Posts 5

Re: Missing files in source tree

Wow, thanks for the amazingly fast turnaround!  I've gone ahead and removed these as well, but it looks like every skin included in the repo has 3 css files that are no longer included as well, could be helpful to get those removed from your working copy as well.

Thanks again for the info, looks like a great project, I think I might just have to buy you a beer now (BTW, awesome pitch!).

2/10/2009 1:03:09 PM
Gravatar
Total Posts 18439

Re: Missing files in source tree

I'll review the skin folders and see about removing those. Feel free to point out any others you encounter. I do try to keep that cleaned up but there are lots of folders and sometimes I miss a few here and there.

Any beers are always appreciated!

Cheers,

Joe

2/11/2009 8:52:40 AM
Gravatar
Total Posts 5

Re: Missing files in source tree

I got rid of all the bad file pointers and got the solution put into TFS now, but I have a new problem.  When running the solution for the first time, allowing it to create the database, it stops after updating the schema.  So it creates the base schema, applies the upgrade scripts, but it does not continue into configuring the various applications or creating the default site.

I wasn't able to determine why it was stopping at this point, so as a test I took the entire solution that I had downloaded from the zip on Codeplex and ran that with no problem.  After running the configuration for the various applications it created the default site and I could continue and login with no problem.  After this, I ran my TFS solution again.  Now it goes straight to the home page and all is good, I can log in and navigate the site.  However, it looks terrible, so I thought maybe I messed up one of the skins.  Within the site administration, the skin drop down selection box has no skins listed in it now, so it appears I just have no applied skin.  For reference, the files that had to be removed from each skin were: style-editor.css, styletextlarge.css, styletextmedium.css.

I'm sure I missed some relevant information somewhere, so please let me know if I can provide any further information.

2/11/2009 9:12:34 AM
Gravatar
Total Posts 18439

Re: Missing files in source tree

A couple of tips that may help.

If you only build the mojoportal-core.sln it will not have any features and may produce the result you describe.

When the setup page runs it checks for the existence of the /Data/Sites/[SiteID]/skins folder where SiteID is usually 1 on a new install. If the folder does not exist it copies the contents from /Data/skins to /Data/Sites/[SiteID]/skins
Perhaps file system permissions prevented it from completing this task. If so delete the /Data/Sites/[SiteID]/skins folder and visit /Setup/Defauolt.aspx again or copy the files manually yourself.

If you build the mojoportal-complete.sln it will build all the features and files from features in separate projects like the mojoPortal.Features.* projects are copied up to the Web folder by a post build event. ie the dlls get copied up to the /Web/bin folder and .aspx and .ascx files etc also get copied up to specific locations.

You can't use the Visual Studio Publish feature to package a build because it only deploys files that are part of the Web project. This misses all the files copied by the post build because they are not part of the main Web project. I recommend packaging builds with the free UnleashIt tool which goes by file extension rather than project membership of files.

Also, you are of course free to do as you wish but I really don't recommend that you put the mojoportal source code in your TFS repository because I don't recommend you make changes to the mojoportal code. If you do that you make it difficult or impossible to get upgrades later.

Its best to keep all customizations in your own external proejcts and only put those in your TFS repository. I recommend work with mojoportal directly from our svn repository so you can always build your custom code against the latest mojoportal code.

The way I do it with customer projects is get a clean checkout of mojoportal, add a subfolder where my customer proejcts will go. Copy the mojoportal-copmplete.sln file and rename it then drop it back in to the root. Add the custom projects to this solution and remove alternate db projects or other projects you don't plan to use. Then commit the sub folder with your custom work to your repository while keeping the rest of mojoportal using its own repository so you can easily stay up to date with the constant improvements being made in mojoPortal.

In this scenario the only important file that can't live in within either repository is the custom .sln file because it has to be in the root which would be owned by the mojoportal repo if it were checked in. Though you could commit it somewhere in your repo with instructions that it needs to be put in the root of the tree.

Hope it helps,

Joe

2/11/2009 9:22:04 AM
Gravatar
Total Posts 5

Re: Missing files in source tree

Thanks for the information, right away I believe the problem is that I did not build/commit the entire complete solution.  I'll do some more testing and post back my results.

As for commiting MP into TFS, I was worried about a couple of things here you might be able to clear up.  One concern was the automated build.  Without having MP code in the repository I wasn't sure this would be possible?  One rule I'd like to stick to is that a check out should be able to build and run on a brand new clean machine.  Also, TFS is much more project based than file based, so I'm not sure I'd be able to check in "half" of my working solution files to TFS while the other is maintained by SVN, perhaps someone with more TFS experience could elaborate?

Once again, thanks for the great support, I'll be sure to post back results once I have time to dive in!

2/11/2009 9:24:49 AM
Gravatar
Total Posts 5

Re: Missing files in source tree

Actually, I was a bit mistaken.  I have not been working with the "core" solution, but instead, the complete-without-silverlight.  I assume this should build everything required for additional features?

2/11/2009 9:30:39 AM
Gravatar
Total Posts 18439

Re: Missing files in source tree

Yes, the complete without silverlight has all the main features other than some protyping I have done in Silverlight. 

I can't really advise on automated build processes, I don't know a strategy for working with both svn and TFS so I guess I can see from that angle why you would want it all in TFS. Not to say that my lack of knowledge means there is no good solution, just that I don't have enough knowledge in that area especialy regarding TFS.

Best,

Joe

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