DNN模块开发
我有一个 dnn 网站的客户。我需要为其开发模块。我该如何开始?我现在使用 Microsoft Visual Studio 2010(试用版)。我无法访问源代码,只需创建新模块并安装它。在这样的环境中开始的最佳实践是什么?另一个问题是,如果我使用 Visual Studio 的试用版,我的模块也会过期吗?
I have a client with dnn website. I need to develop module for it. How I can start? I'm using Microsoft Visual Studio 2010 now (trial version). I cannot access source code, just make new module and install it. What is the best practice to start on the environment like this? Other question is if I using trial version of visual studio, is my module will expire too?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些材料,尤其是视频教程,可能对您开始 DNN 模块开发非常有帮助:http://www.dotnetnuke.com/Resources/Wiki/Page/Module-Development.aspx 它们涵盖了从安装 DNN 模块项目模板到自定义 DNN 模块的开发和打包的各个部分。
对于你的第二个问题,答案是否定的,VS2010试用期结束后,你的模块不会过期。您的另一个选择是使用 Visual Studio 2010 的免费快速版本,在本例中为 Visual Web Developer 2010。您可以在此处下载:http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-web-developer-express 您将无法直接使用源代码管理Express 版本,但仍然可以选择使用 SVN 和像 TortoiseSVN 这样的客户端。
These materials, especially video tutorials, might be really helpful to you when getting started with DNN module development: http://www.dotnetnuke.com/Resources/Wiki/Page/Module-Development.aspx They cover every part from installing DNN module project templates to development and packaging of the custom DNN module.
To your second question, the answer is no, your module will not expire after VS2010 trial expires. Another option for you is to use free express editions of visual studio 2010, for this case Visual Web Developer 2010. You can download it here: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-web-developer-express You will not be able to use source control directly from express edition, but still there is option to use SVN and a client like TortoiseSVN.
购买并阅读本书:专业 DotNetNuke 模块编程
访问下载页面 的 DotNetNuke.com
下载社区版。将其安装在您的开发计算机上并开始运行。
将 Desktop Modules 文件夹和 bin 文件夹(至少)连接到源代码管理
在上面的下载页面,安装Visual Studio Starter Kit
重新启动 Visual Studio 2010
启动 Visual Studio 2010,创建一个新编译的 DNN模块项目,确保其位置位于DNN的Desktop Modules文件夹中
实现一些测试代码
在 DNN 上安装模块(通过清单安装)
将模块添加到 DNN 页面。测试一下。
更新您的 DNN 模块。如果添加或删除文件或更改数据库设置脚本,您只需卸载并重新安装该模块。
构建模块的可部署版本。 (您制作一个 zip 文件或其他文件。只需阅读这本书。我总是必须参考此步骤)
练习在另一个新的 DNN 社区安装上安装 DNN 模块。
一旦您确信其安装正确,请在实时站点上安装该模块(首先进行备份,以防万一)
Purchase and read this book: Professional DotNetNuke Module Programming
Visit the download page of DotNetNuke.com
Download the Community Edition. Install it on your dev machine, get it working.
Hook the Desktop Modules folder and bin folder (at least) to your source control
At the download page above, install the Visual Studio Starter Kit
Restart Visual Studio 2010
Start up Visual Studio 2010, create a new compiled DNN module project, make sure its location is in the Desktop Modules folder of DNN
Implement some test code
Install the module on DNN (install by manifest)
Add the module to a DNN page. Test it.
Make updates to your DNN module. You only need to uninstall and reinstall the module if you add or remove files or change the database setup scripts.
Build a deployable version of your module. (You make a zip file or something. Just read the book. I always have to refer back for this step)
Practice installing the DNN module on another fresh DNN Community Installation.
Once you are satisfied that it is installing correctly, install the module on the live site (Do backups first, just in case)