I need to create installation package for custom Kentico module. I created the package as per https://docs.kentico.com/k10/custom-development/creating-custom-modules/creating-installation-packages-for-modules, so now I have separated web app project holding my custom functionality. Further I need to create custom form control that uses a Kentico form control (UniSelector), I created it in the module's web app and it looks like this
<%@ Control Language="C#" AutoEventWireup="true" Inherits="CMSModules_MyModule_Content_FormControls_Pages_SelectPage" Codebehind="SelectPage.ascx.cs" %>
<%@ Register src="~/CMSAdminControls/UI/UniSelector/UniSelector.ascx" tagname="UniSelector" tagprefix="cms" %>
<cms:UniSelector ID="pageSelector" runat="server"
.designer.cs file contains the following definition
protected global::CMSAdminControls_UI_UniSelector_UniSelector pageSelector;
The issue is that CMSAdminControls_UI_UniSelector_UniSelector type doesn't exist in module's web app assembly (it exists in the main CMSApp assembly), so module's project can't be built. I see two solutions:
What is the proper solution? Is there any other one?
I would copy the uniselector control itself into your project and reference it as such, it's a control so i doubt it will be in the assembly files (i could be wrong though, you can try to see if some of the drivers in the LIB folder contain it).
Please, sign in to be able to submit a new answer.