Home   » »   Knowledge Base   » »   UI Customization   » »   ALUI v6.5 UICI with VS 2005 How-To (Part 4)

ALUI v6.5 UICI with VS 2005 How-To (Part 4)

Copying The Source Files Into The Solution

Save and close the project solution.  Open Windows Explorer and navigate to the location where you have extracted the UICI source.  Under each of the folders matching the five projects you added to your solution you will find a folder structure similar to this:

UICI Source Folders

 

 

Copy each of the "dotnet" subfolders to the matching project folder.  For example copy the "..\ptwebui\nullnavigation\dotnet\" folder to your "%SOURCE_HOME%\(Solution Name)\nullnavigation\" folder.  While it is not required that you start at the dotnet subfolder (what is required is everything below there), I would suggest you follow the same structure to ensure easier source comparison against future version updates.  When finished your solution folder should look something like this:

UICI Project Folders

 

 

 

Finishing the Visual Studio Project Configuration

Open Visual Studio and reload the project solution we created earlier.  Select each project (one at a time) and click on the "Show All Files" button.  For those of you who aren't familiar with this button, it's at the top of the Solution Explorer and looks like this:

Show All Files Button

 

 

Once you have done that to each of the projects, you should now see the "dotnet" folders you copied in during the last step.  Right-click on each of the "dotnet" folders and choose "Include In Project".  Most should be added rather quickly, though some (like the portalpages project) contain quite a few files and may take a minute or two to process depending on the speed of your PC.  Once you have included the "dotnet" folder in each of the projects, go back and click on the "Show All Files" button again to hide the files and folders not included in the project build.  When finished your Solution Explorer should look something like this:

Completed Solution Explorer Project View

 

 

Now if you do what I did you would assume that you could build the project at this point.  The problem is that when you try building right now you will see several (102 for me) errors when you try.

Build Error List

 

This happens because the original code written by BEA is all done in Java and a tool is used to convert the Java classes into C# classes.  Unfortunately (or fortunately for those of you who are up to the challenge of converting them yourself) they left the test class files under the dotnet folder for both the portalpages and portaluiinfrastructure projects.  To fix this issue, expand the "dotnet" folder under each of these projects, right click on the "test" folder and choose "Exclude From Project".  If you removed the "Show All Files" option from the project as shown earlier, the "test" folder will disappear from your view.  If you did not, then the folder will be greyed out like this example:

Test Folders Fixed

 

 

Once you have done this, click on Build >> Clean Solution.  Then Build >> Rebuild Solution.  IF you followed all the steps above, the project should successfully build for you with "Output" results similar to this:

Build Success

 

Continue to Part 5 »
« Back to Part 3