Sep 022010

SharePoint 2010 : Sandboxed visual webpart is possible!

 

As probably many of you have been told it’s not possible to create a visual webpart within a sandboxed solution. I know when I heard this it was a real downside and didn’t really make me enthusiastic about using this kind of solution. But, there’s a spark on the horizon, some people have already figured out how to work around this drawback!

 

I first noticed the possibility when working with the SharePoint 2010 Dev tools for visual studio from Codeplex but their template just simply doesn’t work. Of course now my curiosity flared up and I kept looking until I came across this great blogpost by Stefan Stanev which explains step by step how to achieve a sandboxed visual webpart + gives a downloadable sample project (POC) .

Now this project probably won’t work immediately, it will build but will show error’s when you try adding the webpart because it has this post-build script (postbuild.ps1) which uses specific hard coded locations. Be sure to install the ILMerge tool (free Microsoft download here) to this location - C:\Program Files (x86)\Microsoft\ILMerge.

 

This sure got me thinking about sandboxed solutions again, hope it will convince you too!

 

Gr

Tom

Published: 9/2/2010  9:35 PM | 0  Comments | 0  Links to this post