Skip to content

andiappan-ar/SitecoreCSPad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sitecore CS Pad | Sitecore C# Pad

SitecoreCSPad is pad is used to execute C# codes inside your Sitecore instance. We can use sitecore, custom class codes. Below some of use cases,

SitecoreCSPadLogo

Sample Use cases : (What we can do with this?)

Listed below some example use cases,

  • Read SOLR index docuemnts and get the values
  • Create/Update bulk Sitecore items
  • Read Sitecore items and bind into custom model
  • Call your custom dlls methods

Features

Feature Status
Execute C# code ✅ Available
Resuts display or log the execution results ✅ Available
Error details ✅ Available
Debugging ⏳ InProgress

Boost development speed:

During your development - You want to execute some C code for testing purpose , If you write the code and place the dll. This will eat your time. CS Pad will help you to save this time.

Light weigght remote code executions:

You want to execute some C# code in your higher environement and want to check some thing. Then this case CS pad will help you, with out test dll replacement.

Tools and techs used

  • Monaco - C# code editor
  • Roslyn/Micorsoft.Code/Westwind.Scripting - C# code execution

Setup

Setting up this in your Sitecore XP/XM.

  1. Go to release folder, get release artifacts and paste this in your website root.

  2. Go to your web config and add custom assembly bindings from this file. (Please dont copy paste this config, Just do the manual change.)

  3. Since this is a sensitve tool, its placed under admin folder. Below is the access path you can access the PAD, URL: https://{your-domain.com}/sitecore/admin/SitecoreCSPad/SitecoreCSPad.aspx

    image

How to use?

Write your code in input editor.

Execute your code by clicking this button image .

Results Look and feel
Successfull, console view. image
Successfull, object view. Example your return statement returning any object. This will show as object viewer image
Error details image

About

SitecoreCSPad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published