But before we do, as developers, we need to create a Visual Studio 2008 web application project. As introduced with Visual Studio 2005 sp1, there are some key differences between the Web site project and the Web Application project model.
The Web site project model uses the directory structure to define the contents of the project. In this model, there is no project file, and all files in the directory are part of the project. In the Web application project model, only files that are explicitly referenced in the solution's project file are part of the project. These files are displayed in Solution Explorer. These files are compiled during a build. That's a big difference. For many developers, we choose the Web application project model because we want to do the following:
- Use stand-alone classes to reference page classes and more often, user-control classes
- Have control over the names of output assemblies
- Add pre-build and post-build steps during compilation
- Build a Web application with multiple Web projects
- Publish the Web Application project into a single assembly
Sitecore CMS supports the Web Application Project model, and not the Web site model.
Today’s post features a short video on how to create a visual studio project for Sitecore Intranet Portal 3.1.
While you do the watching, I’ll continue writing the course outline draft due at the end of the week.
A quick recap:
- Create a "Dummy" web application project
- Copy the Properties Folder, Project File and User Options file to your SIP website folder
- Open the copied project file in Visual Studio
- Exclude Default.aspx
- Add a reference to the Sitecore.Kernel. Set Copy Local to False
- Include any other folder or file in the project
- Build and test
Questions or comments? Please post. Thanks!
Next topic: Adding the Sitecore Intranet Portal source files to your project.
Hi Seth
ReplyDeleteGreat stuff .. Keep it comming :-) Great initiative - I hope you have the time to do alot more like it. Would be great to see you confront the use of some of the stuff in the Shared Source Library and also do some enterprice 2.0 integration demos. Besides from cool google (and more aps) there should be plenty of SaaS business app's out there that would work really well with SIP..
Sincerely Jan Kjaer - Denmark
very well explained in video. The recap in the end clarified whole concept. Thanks.
ReplyDeleteIntranet Solutions