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

May 13, 2010 at 2:32 PM

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

May 15, 2010 at 11:07 AM

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 (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.setproperty.aspx).

Coordinator
May 15, 2010 at 12: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.