My First or I should say many tries HelloWorld sample project:
I downloaded the visual studio template of dotnetnuke from dnn site and ran the compilation and build method in visual studio but to my surprise their were errors, and I had no clue as to why such erros are happening.
First, I applied the update to "References" in "My Project" (double click) properties, I added a reference path to the bin folder of a complete dnn install (or use source code) which removed the yellow warnings for DotNetNuke.dll and Microsoft Application Block dll.
Once the dll were referenced correctly, I was able to remove many issues, then their was a new issue of Text is not a member of System.Web.UI.UserControl. That was one error I just wasn't able to figure out until I stumbled upon a dotnetnuke forum where a user said about fixing the error by changing the vb code file, well guess what in microsoft visual studio 2008 the file it is no longer the code file but it is an extra file called "EditHelloWorld.ascx.designer.vb" now how in the world will I be able to figure that out unless I was working big time in VS, but any way I guess i should work more with .Net framework and dotnetnuke.
Needless to say by changing the lines of this file, the issue was fixed and I was able to build the Hello world sample project; Finally!
Error message displayed on before solution worked were:
Line 35: Protected WithEvents txtContent As DotNetNuke.UI.UserControls.TextEditor
Line 80: Protected WithEvents ctlAudit As DotNetNuke.UI.UserControls.ModuleAuditControl
To automate the dnn module install and update follow the Sobot Software helpful blog:
DotNetNuke custom modules in C#, develop and debug
This is my take on the dotnetnuke module automation:
I downloaded the visual studio template of dotnetnuke from dnn site and ran the compilation and build method in visual studio but to my surprise their were errors, and I had no clue as to why such erros are happening.
First, I applied the update to "References" in "My Project" (double click) properties, I added a reference path to the bin folder of a complete dnn install (or use source code) which removed the yellow warnings for DotNetNuke.dll and Microsoft Application Block dll.
Once the dll were referenced correctly, I was able to remove many issues, then their was a new issue of Text is not a member of System.Web.UI.UserControl. That was one error I just wasn't able to figure out until I stumbled upon a dotnetnuke forum where a user said about fixing the error by changing the vb code file, well guess what in microsoft visual studio 2008 the file it is no longer the code file but it is an extra file called "EditHelloWorld.ascx.designer.vb" now how in the world will I be able to figure that out unless I was working big time in VS, but any way I guess i should work more with .Net framework and dotnetnuke.
Needless to say by changing the lines of this file, the issue was fixed and I was able to build the Hello world sample project; Finally!
Error message displayed on before solution worked were:
- ctlAudit.CreatedByUser
- ctlAudit.CreatedDate
Line 35: Protected WithEvents txtContent As DotNetNuke.UI.UserControls.TextEditor
Line 80: Protected WithEvents ctlAudit As DotNetNuke.UI.UserControls.ModuleAuditControl
To automate the dnn module install and update follow the Sobot Software helpful blog:
DotNetNuke custom modules in C#, develop and debug
This is my take on the dotnetnuke module automation:
rd /S /Q "$(SolutionDir)Website\DesktopModules\$(ProjectName)"
md "$(SolutionDir)Website\DesktopModules\$(ProjectName)"
md "$(SolutionDir)Website\DesktopModules\$(ProjectName)\App_LocalResources"
copy "$(ProjectDir)App_LocalResources\" "$(SolutionDir)Website\DesktopModules\$(ProjectName)\App_LocalResources"
copy "$(ProjectDir)*.ascx" "$(SolutionDir)Website\DesktopModules\$(ProjectName)"
copy "$(ProjectDir)*.dnn" "$(SolutionDir)Website\DesktopModules\$(ProjectName)"
copy "$(ProjectDir)uninstall.*" "$(SolutionDir)Website\DesktopModules\$(ProjectName)"
Comments
Post a Comment