Now that DotNetNuke 5.4.2 is out the door we are starting on the issues in the 5.4.3 Roadmap. We have included quite a few community code submissions in the last couple of releases and we’d like to include more community code in 5.4.3. You can submit your code fixes through Gemini as I detailed here, or you can also make use of the open repository we maintain at CodePlex and use SVN to submit a code patch. I’ll show you how to do that in this post. CodePlex will notify us that a patch has been submitted but it also a great idea to add a comment to the issue in Gemini as well so we can keep track of who is submitting code fixes.
If you have a code fix for an issue that is not in the roadmap submit it anyway and we may be able to triage it into the release.
To create a patch for SVN the first thing you need to do is pull the source from CodePlex. You do this by using a tool such as Tortoise SVN which you can get for free here.
Once you have an SVN Client installed you need to get the source. To do that simply right click your local folder and select “SVN Checkout”. This will open the following dialog box.
To find out what the URL of the repository is you can go to the Source Code page of the DotNetNuke CodePlex site located here. When you get there click the Connection instructions link to show the following:
Copy the Subversion URL into the Tortoise SVN dialog box. Make sure you add /trunk to the end of the URL so your dialog box looks like this:
Now press OK and the source code will be pulled from CodePlex to your local machine. Please be aware that for now the solution in CodePlex is for VS2010 only, the project files are all modified for VS2010 and do not open VS2008. You can open in VS2008 if you modify the project files yourself. An easy way to do this is to grab the .VS2008.vbproj files from the released Source package and use the VS2008 solution file from the Source package as well.
Once you have downloaded the code you can open the solution and make your bug fixes.
Then comes the part where you create a patch with SVN. Its really very simple.
Right click your source folder and select Create Patch from the SVN Menu
This will show you a dialog with all fo the files you changed for your fix.
Press ok to show the Next screen where you can save the patch. Please use the Gemini issue number and your DotNetNuke username as the file name like so:
The last step is you will be shown the actual patch file:
You can now either attach this file to the issue in Gemini
Or submit it as a patch to CodePlex
Please remember to be descriptive about your changes so we can review them easily.
Thanx for your valuable help with DotNetNuke.