I am having a problem with visual studio 2008 websites and SharePoint/MOSS 2007. We previously had 2 web application projects housed underneath our SharePoint structure, but due to the nature of project files and source control, it was creating problems in our team development environment. I have decided to switch to from web applications to websites to remove the project file until I have time to change our source control to TFS. Everything works fine, however when I try and manually build one of the websites I get the following error:
This expression builder requires SPContext to run
Now this is not a real problem, due to the nature of websites and how they compile as needed upon loading. But it is a problem for my development team as we would really like to be able to get successful builds for various reasons.
The problem occurs through the use of a custom expression builder we use, which still works fine at runtime. It is only during compile that it gives us the error.
Any thoughts or ideas on how this problem can be overcome would be greatly appreciated.
Cheers,
Brendan