Home > Technology
Showing posts with label Technology. Show all posts

Thursday, August 28, 2014

DNN - Error 2 The "MSBuild.Community.Tasks.XmlRead" task could not be loaded...


If you are using Christoc's DotNetNuke Module Development Template, you might run into the error when trying to publish - "Error 2 The "MSBuild.Community.Tasks.XmlRead" task could not be loaded..."

Here are the possible solutions -
  1. Try creating a new project or installing the templates again.
  2. Create a \packages\MSBuildTasks.1.4.0.45\tools\ inside my desktopmodules/myproject and place the  MSBuild.Community.Tasks.dll there...
    Rebuild project and the install folder is there with the package created.
  3. From VS 2012 go to Tools > Library Package Manager > Package Manager Console
    After Package Manager Console loads, type the following command -
    PM> Install-Package MSBuildTasks
    You should get the following messages:
    Successfully installed 'MSBuildTasks 1.4.0.45'.
    Successfully added 'MSBuildTasks 1.4.0.45' to ($CustomModule).
    Delete temporary file
    Copying MSBuild Community Tasks files to ($SolutionDir)\Website\DesktopModules
    ($CustomModule)\Build
    Don't forget to commit the Build folder
    Installing MSBuild Community Tasks Targets file import into project ($CustomModule)
    Import will be added for: $(SolutionDir)\Build\MSBuild.Community.Tasks.targets
    Import added!

    You should now be able to rebuild your module in Release mode. 
1>------ Build started: Project: [projectname], Configuration: Release Any CPU ------
1>CSC : warning CS1607: Assembly generation -- The version '00.00.01.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format
1>  [projectname] -> [projectpath][projectname].dll
2>------ Publish started: Project: [projectname], Configuration: Release Any CPU ------
2>Connecting to C:\Dev\[projectname]Publish...
2>Copying all files to temporary location below for package/publish:
2>obj\Release\Package\PackageTmp.
2>Publishing folder /...
2>Publishing folder App_LocalResources...
2>Publishing folder bin...
2>Site was published successfully [projectpath][projectname]Publish
2>
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========


Tuesday, August 12, 2014

Telerik Rad Tab cutoff issue





vs









There is a known limitation of RadTabStrip's overlapping tabs rendering. Since parts of the tabs are rendered inside the next/previous tabs. What can be done with a custom skin if the overlapping effect is done with changing the selected tab position to relative in order to get it on top. This however will have some undesired issues in IE6/7 if RadTabStrip is placed in a scrolling container without set position: relative.
I managed a solution to this issue through a simple CSS which handles the tabs to their desired width and wrap where necessary -

 .rtsLI,  
 .rtsLink,  
 .rtsLast,  
 .rtsFirst,  
 .rtsAfter,  
 .rtsOut,  
 .rtsIn  
 {  
        width: auto !important;  
 }  

Add above code anywhere inside the <style> tag or in any of your CSS file that you are using on the site with tab cutoff issue.
I hope this helps many of you facing same issue.