简体   繁体   English

如何发布DNN网站?

[英]How to publish dnn website?

I have a site in DNN 6.2.1, and I create a simple module in this site. 我在DNN 6.2.1中有一个站点,并且在此站点中创建了一个简单的模块。 i install my module controls from Host\\Extension\\Add New Control, and it works by source code well. 我从Host \\ Extension \\ Add New Control安装我的模块控件,它可以很好地通过源代码工作。 Now I want to have a package from my module without source code, to install it in other sites. 现在,我想从我的模块中获取一个没有源代码的软件包,以将其安装在其他站点。 when I use create package from my module properties in extension page, it creates a package with all my source code. 当我在扩展页面的模块属性中使用create package时,它将使用我的所有源代码创建一个包。 When I publish my site in order to publish my module source and give me a DLL, visual studio gives me lots of errors from other controls, most of them tell this : 当我发布站点以发布模块源并给我一个DLL时,visual studio会给我很多其他控件的错误,其中大多数告诉我:

"Could not load file or assembly 'DotNetNuke, Version=6.2.1.253, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." “无法加载文件或程序集'DotNetNuke,Version = 6.2.1.253,Culture = neutral,PublicKeyToken = null'或其依赖项之一。系统找不到指定的文件。”

What can I do to have a install package from my module without source code? 如何从我的模块中获取没有源代码的安装软件包?

I would highly recommend you go through the DNNTaskManager tutorial for doing module development, you will find it is much easier to develop modules using a template that creates "packages" for INSTALL and SOURCE. 我强烈建议您阅读DNNTaskManager教程以进行模块开发,您会发现使用为INSTALL和SOURCE创建“程序包”的模板来开发模块要容易得多。

http://www.dnnsoftware.com/wiki/Page/Module-Development http://www.dnnsoftware.com/wiki/Page/Module-Development

You can find the templates at 您可以在以下位置找到模板

https://christoctemplate.codeplex.com/ https://christoctemplate.codeplex.com/

For DNN 6, you will want to grab an older version of the template, likely v1.1 or older 对于DNN 6,您将希望获取较旧版本的模板,可能是v1.1或更旧版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM