Welcome to Arnault Nouvel's CodeTesterWebPart.

This WebPart uses CodeDom and Reflection to dynamically compile an assembly and run a method containing user's input.

Test your .NET code in Sharepoint's web context without deploying anything and without waiting for Sharepoint to initialize.

Type some code directly in the textbox and click a button to run it !

CSharp.PNG

Since v0.0.0.2 you can code in VB.NET too :

VB.PNG

View compiler errors just like in Visual Studio :

CompilerResults2.PNG

Test controls and script injections :

Gantt4.PNG

Considerations
  • This web part is a developer tool that IS a major security hole as any code can be run through it, by any user with access to the site it's deployed to. It's not meant to be deployed to any production environment.
  • It is best viewed in Internet Explorer

Installation : Refer to this post

My blog (in french) : http://blogs.developpeur.org/anouvel

Last edited Nov 29, 2008 at 7:39 AM by anouvel, version 21