Microsoft.SharePoint.SPWeb' does not contain a definition for 'SetProperty'

May 13, 2010 at 3:32 PM

Does anybody have problem compiling Microsoft.Practices.SharePoint.Common? Blows up on "this.web.SetProperty(BuildKey(key), value);" ...

May 15, 2010 at 12:07 PM

I think you need SharePoint 2010 RTM to compile the latest version. I got the same problem on SharePoint 2010 RC, but the SetProperty method seems to be added in RTM (

May 15, 2010 at 1:31 PM

You are right.  This property was just added, and will allow values to be stored in property bags for the web within the sandbox.  Previously this functionality did not work.  The latest release does require the RTM version.  We tested on RTM of SharePoint and RTM of Visual Studio.