Properties missing from Visual Studio 2010 Intellisense..

Today I ran into a problem that made me think I was either blind, crazy.. or both.

I created a new SharePoint 2010 project in Visual Studio 2010 and was trying to code against the SPSite.WebApplication property but it was not showing up in the Intellisense. I thought I found a bug with VS 2010…

It turned out this property is not visible in Intellisense because my SharePoint project is a “sandboxed” solution (and I think this is the default setting). Sandboxed solution is new to SP 2010: http://msdn.microsoft.com/en-us/library/ee539083.aspx.
Set the project to be a “normal” solution and the property I was looking for is visible in Intellisense. You can do this by clicking on the project file in the Solution Explorer, and set it in the Property window.
Advertisement

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.
This entry was posted in SharePoint, Visual Studio 2010. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s