Subscribe
E-mail
Download View Codeplex Project Site
Powered by: newtelligence dasBlog 1.9.7174.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008, Rich Finn
dasBlog MOSS template
Recently, Andrew Connell published a white paper on the Telerik site explaining how to create WSP files for the Telerik ASP.Net controls. In the document, AC used the RadMenu control as his example, but I noticed that there was a couple of entries in the SafeControls block of the manifest.xml file that were specific to the RadMenu control. This made wonder if there were other controls that needed control-specific SafeControls entries, so I decided to take a look.
Most of the controls have a couple of different namespaces referenced, and the RadCalendar takes things a step further and references the RadInput control, which means that the RadInput.Net2.dll assembly needs to be packaged with it.
Andrew's document is awesome, but I wanted to post this as a supplement to answer potential questions around the manifest.xml file if you want to deploy any of the other RadControls into your MOSS farm.
Assuming that you already have the Telerik Editor for MOSS, I'm ignoring the entries needed for the RadSpell and the RadEditor controls, as they are shipped with it...
RadAjax
<Assembly DeploymentTarget="GlobalAssemblyCache" Location="RadAjax.Net2.dll"> <SafeControls> <SafeControl Namespace="Telerik.RadAjaxPanelDesign" TypeName="*" Safe="True" /> <SafeControl Namespace="Telerik.WebControls" TypeName="*" Safe="True" /> </SafeControls> <ClassResources> <!-- Class Resources Go Here --> </ClassResources> </Assembly>
RadCalendar
<Assemblies> <Assembly DeploymentTarget="GlobalAssemblyCache" Location="RadInput.Net2.dll"> <SafeControls> <SafeControl Namespace="Telerik.RadInputUtils" TypeName="*" Safe="True" /> <SafeControl Namespace="Telerik.WebControls" TypeName="*" Safe="True" /> </SafeControls> </Assembly> <Assembly DeploymentTarget="GlobalAssemblyCache" Location="RadCalendar.Net2.dll"> <SafeControls> <SafeControl Namespace="Telerik.RadCalendarUtils" TypeName="*" Safe="True" /> <SafeControl Namespace="Telerik.WebControls" TypeName="*" Safe="True" /> </SafeControls> <ClassResources> <!-- Class Resources Go Here --> </ClassResources> </Assembly> </Assemblies>
To conserve space here, I've made an xml file with all the manifest entries available for download.
*.csproj file replacementMake sure the path to your MakeCab.exe file is correct, but to create the WSP on-build of the project, replace the following text in the csproj file
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> -->
with
<PropertyGroup> <MakeCabPath>"C:\Windows\System32\makecab.exe"</MakeCabPath> </PropertyGroup> <Target Name="Build"> <Exec Command="$(MakeCabPath) /F TelerikSkins.ddf /D CabinetNameTemplate=$(MSBuildProjectName).wsp /D DiskDirectory1=wsp"/> </Target>
Download all Telerik manifest entries