1 - A) SiteCoreVisualStudio
1 - A) SiteCoreVisualStudio
1. Creating a project
Create a Visual Studio project (this should generally be done only once for each instance of Sitecore).
5. Enter a name for your project. Names should not begin with numbers or contain special characters.
6. Enter the address of the website hosting the project, typically http://localhost in development.
1 of 4 16/2/09 9:12 PM
sdn5print http://sdn5.sitecore.net/Articles/API/Using%20Visual%20Studio...
2 of 4 16/2/09 9:12 PM
sdn5print http://sdn5.sitecore.net/Articles/API/Using%20Visual%20Studio...
Layouts typically do not contain code-behind; Sublayouts commonly contain code-behind. To be prompted to create a
code behind, exclude a file from the project temporarily, then add it again.
13. Optionally, open the /sitecore modules/ directory in Windows Explorer and create one or more folders as needed. Return
to Visual Studio, refresh Solution Explorer and include these directories in the project.
14. Right-click on the name of the project in Solution Explorer and choose Properties.
3 of 4 16/2/09 9:12 PM
sdn5print http://sdn5.sitecore.net/Articles/API/Using%20Visual%20Studio...
3. Enable IntelliSense
NOTE: The following information does not apply to Visual Studio 2005. Microsoft changed the file format for
IntelliSense in VS 2005. We do not currently have an IntelliSense source for Xml Controls and Layouts for Visual
Studio 2005.
Perform the following steps to enable IntelliSense in Visual Studio when editing Xml Controls and Xml Layouts.
/sitecore/shell/Schemas/Sitecore.xsd
from the Sitecore web root to the Visual Studio schema directory. The Visual Studio schema directory is usually:
In the Xml Control or Xml Layout file, make sure the following Namespace is included:
xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense"
For example:
4 of 4 16/2/09 9:12 PM