CONFIGURE VISUAL STUDIO 2012 PROJECT FOR SITECORE (v6.4 to v7.5)
Steps to configure VS 2012 for Sitecore (v6.4 to v7.5)
In Visual Studio 2010, to create a project and solution for a Sitecore installation:
- Open VS 2012
- Click File >> New >> Project :
- In the New Project dialog, select .NET Framework 4.5,
- Select the ASP.NET Empty Web Application project model
- Set Name to the name of the project (ProjectName),
- Set Location to the path to the WebSite folder for the project (C:\inetpub\wwwroot\ProjectName\WebSite)
- Uncheck >> the Create directory for solution checkbox
- Click OK.
- In Visual Studio, click File >> Close Solution.
- Move the Properties folder, the .csproj file, and the .csproj.user file from the subdirectory created by Visual Studio (C:\inetpub\wwwroot\ProjectName\Website\ProjectName) to the WebSite subdirectory (C:\inetpub\wwwroot\ProjectName\Website).
- Delete the subdirectory created by Visual Studio (C:\inetpub\wwwroot\ProjectName\Website\ProjectName).
- Open Visual Studio and open the newly created .csproj file.
- In Visual Studio, delete the /Web.config/Web.Debug.config and the /Web.config/Web.Release.config file from the project.
- In Visual Studio, add references to /bin/Sitecore.Client.dll, /bin/Sitecore.Kernel.dll, and any other dependent assemblies that you use in every project.
- Set the Copy Local property to false for each reference to an assembly in the /bin folder.
- In Solution Explorer double-click Properties, set a default Assembly name and a Default namespace, and select the appropriate .NET framework version for your version of Sitecore.
- To use the /layouts subdirectory and/or the /xsl subdirectory, Go to Solution Explorer, select the project, and then click the Show All Files button.
- Right-click on each relevant subdirectory and then click Include In Project,
- Right-click each of the individual subdirectories and files in that subdirectory and click Exclude From Project. Remember to clear the Show All Files button afterwards, or debugging from Visual Studio could fail.
- After build or while closing project, Visual Studio will prompt you to create a solution for the project. Save it as your choice.
No comments:
Post a Comment