Module DNN模块包不支持';不要安装控制装置
我正在创建一个DNN模块,并且有一个基于此的工作模块: 当我在DNN 5.6.2安装中安装它时,一切正常,除了.ascx文件没有复制。如果手动复制.ascx文件,则模块工作正常 我的.dnn文件如下所示:Module DNN模块包不支持';不要安装控制装置,module,package,dotnetnuke,Module,Package,Dotnetnuke,我正在创建一个DNN模块,并且有一个基于此的工作模块: 当我在DNN 5.6.2安装中安装它时,一切正常,除了.ascx文件没有复制。如果手动复制.ascx文件,则模块工作正常 我的.dnn文件如下所示: ... <moduleDefinitions> <moduleDefinition> <friendlyName>SignUp.Control1</friendlyName> <defaultCach
...
<moduleDefinitions>
<moduleDefinition>
<friendlyName>SignUp.Control1</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey />
<controlSrc>Control1.ascx/Control1.ascx</controlSrc>
<supportsPartialRendering>True</supportsPartialRendering>
<controlTitle>Control1</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
<viewOrder>0</viewOrder>
</moduleControl>
...
</moduleControls>
</moduleDefinition>
</moduleDefinitions>
...
有人能告诉我为什么控件没有复制到相应的目录吗
谢谢 您似乎在
标记中有错误,可能您的意思是:桌面模块/SignUp.Control1/Control1.ascx
您还需要在
中提及此文件:
<component type="File">
<files>
<file>
<path>Your Desire Path</path>
<name>Control1.ascx</name>
</file>
</files>
</component>
你渴望的道路
Control1.ascx
除了Ehsan的答案,您还可以使用MSBuild和Chris Hammonds模板(http://christoctemplate.codeplex.com)这将创建一个资源压缩包,每个文件都有一个资源节点,而不是单个节点非常感谢。我已经开始使用该模板。这帮了大忙,谢谢!似乎您必须注册控件,并将其文件移到另一个位置。
<component type="File">
<files>
<file>
<path>Your Desire Path</path>
<name>Control1.ascx</name>
</file>
</files>
</component>