Monday, November 26, 2018

Setup Visual Studio Project For Sitecore


Visual Studio solution for Sitecore 9

 

1.      Create a new a new web project,

 

 

 

 

Enter the Name

Location

Solution name

 

 

2.      Select ‘Empty’ ASP.NET Template

Click on ‘MVC’ Check box

Click on OK

 

 

3.      Delete the Global.asax file

Delete the Web.Config file

 

4.      Go to your Sitecore IIS Project. Follow this link https://sitecore4u.blogspot.com/2018/09/sitecore-9-update-2-installation.html, if you are not having Sitecore project in IIS.

 

 

 

Copy Global.asax, Web.Config files and paste in your Visual Studio Project.

 

 

 

5.      Add Nuget package solution for sitecore

 

 

 

 

NuGet V3 feed URL (Visual Studio 2015+)

https://sitecore.myget.org/F/sc-packages/api/v3/index.js

 

6.      Tools -> NuGet Package Manager -> Manage NuGet Packages for Solutions

 

Sitecore.Kernel

Sitecore.Mvc

Sitecore.Mvc.Analytics

 

Click Install

 

7.      Now your project is ready.

 

To set up the publishing deployment, in the Create Publish Settings dropdown in the Visual Studio toolbar, select <New Custom Profile>

In the Publish Web dialog, in the Publish method field, click File System, and in the Target location field, browse to the Website folder of your Sitecore instance, and then click Publish.

 

 


No comments:

Post a Comment