Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedStruggling to get a working source buildStruggling to get a working source build
Previous
 
Next
New Post
1/23/2011 3:23 PM
 
Hi all-

Trying to build DNN from source so I can work on a module which for some reason requires dnn source in order to build itself.

I (think) I have everything set up, but I am getting massive numbers of build errors from dnn source when I try to simply build it with no changes.  I have to conclude my environment is still wrong -- the errors must be due to a setup mistake.

Here's what I have:  win7+sqlserver express 2008r2+vs2008sp1.  When I load the vs2008 version of the dnn sln, I get warnings that the dnn source files are not "trusted".  I have spend hours trying to find instructions on the net to mark the folders as trusted -- none of the instructions I've found seem applicable to my versions.  When I build anyway, I end up with 200+ errors -- mostly inability to access various labels.  Which makes me think it cant see untrusted files.

In any case, I am lost at this point - I have no idea how to proceed.  If anyone can point me to a good tutorial (one that is for DNN source please -- there are endless tutorials for setting up non-source versions, but they don't get me where I need to be).

Thanks,

Mark
 
New Post
1/23/2011 10:37 PM
 
Hey Mark,

For starters you need to run visual studio as an administrator, and secondly need to have the web application section connected to a live and running web site.

However having said this - I would be surprised to see a module that needs the full source code to run.  At a guess what you maybe need is to setup based around a starter kit build.

Alternatively, if you really do need to base a compile on the source build, what I would suggest that you do is turn off building of all the support modules and providers and the core libraries ... which basically leaves the main web application.

What module are you looking at building.

Westa

 
New Post
1/24/2011 9:18 AM
 
As Wes already indicated, I cannot think of any module project which would require the DotNetNuke framework source to be installed for it be built. Instead you would add to the project a reference to the DotNetNuke.dll assembly (and possibly to other DotNetNuke related assemblies depending on the requirements of the module) located in the \bin folder of the website in which the module development is being done.

Regarding your specific issue with not being able to build the DotNetNuke_Community_VS2008.sln solution file without errors, there are several common causes for this problem:

1. There is no web.config file located in the website root folder. The source package includes a release.config and a development.config file. One of those (usually development.config) must be renamed or copied to web.config. Without the web.config file, many errors will be displayed as the various class imports statements contained in web.config will not be available to the compiler.

2. The solution file assumes a default website reference located at http://localhost/DotNetNuke_Community. Most likely that is not the site alias that you have used when setting up the website application in IIS. Before opening the solution file in VS, you must open it in a text editor (Notepad works well) and replace the reference to http://localhost/DotNetNuke_Community with that used for your the website alias you have setup in IIS. For example, to http://localhost/DNN5Source. While editing the solution file in Notepad you can replace other references to "DotNetNuke_Community" with that of your site alias. This is optional, however.

3. Make sure that the website application that you have created in IIS is pointing to the Website child folder of the folder containing the extracted source package.

4. If you look at the VS Configuration Manager for the solution you will see that the website itself is not checked to be built. That is correct as it is not currently possible to pre-compile the website. If you do try to build the website, a number of errors will be displayed.

5. Upon building the DotNetNuke solution, you may see a number of warnings, often due to references to deprecated (obsolete) methods. Those are OK and will not prevent you from building the solution. With each version, the number of warnings become fewer. As I recall when building the DotNetNuke v 5.06.01 solution file in VS2010, I did not see any warnings displayed.

After reading your initial post I was about to direct you to the DotNetNuke Wiki for more information on doing a source package install but realized that the Wiki does not contain such information. I wrote a detailed set of instructions for a source installation last night off-line and expect to get these uploaded to the Wiki later today.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/24/2011 4:16 PM
 
I have now added details on how to perform a source package installation to the DotNetNuke Wiki:

http://www.dotnetnuke.com/Resources/W...

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/24/2011 6:45 PM
 
Hey Bill,

Nice add - one comment - as its been a while since i stuffed round with rebuilding the source - are there still potential version issues from libraries that update their version numbers automatically - I seem to recall way back in the dark ages that this used to cause some wierd issues with dlls getting out of sync with version numbers - specially between development and production servers.

Westa
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedStruggling to get a working source buildStruggling to get a working source build


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out