Contents
How to create Visual Studio solution for Sitecore?
Now lets create a Visual Studio solution to support this Sitecore instance. Open Visual Studio 2017 in an administrator mode. Click on File >> New >> Project. Select Web in left, we are creating ASP>NET Web Application. Enter the name of the project (DummyWebsite in my case). Make sure you select the framework 4.7.2.
How to copy files from Sitecore to web root?
Delete the default Global.asax and replace it with the Global.asax from your Sitecore instance. Configure your method of copying files from the project to the web root (whether that’s Visual Studio’s Web One Click Publish, TDS, or something else). Build your solution and browse to your site.
How do I connect my project to Sitecore rocks?
Choose the Sitecore instance from the list. Connecting your project to Sitecore Rocks means that when you create certain files from the Sitecore menu, you will be prompted to add a corresponding Sitecore item. For example, a view rendering consists of a .cshtml file on the file system and an item under sitecore/Layout/Renderings.
Are there different versions of Sitecore for MVC?
Different versions of Sitecore support different versions of ASP.NET MVC. For a complete list, refer to the Knowledgebase article. Your version affects the type of project you create.
How to connect Sitecore rocks to your project?
Right-click on your main project, and select Sitecore > Connect to Sitecore…. Choose the Sitecore instance from the list. Connecting your project to Sitecore Rocks means that when you create certain files from the Sitecore menu, you will be prompted to add a corresponding Sitecore item.
How to create MVC project in Visual Studio 2017?
Open Visual Studio 2017 in an administrator mode. Click on File >> New >> Project. Select Web in left, we are creating ASP>NET Web Application. Enter the name of the project (DummyWebsite in my case). Make sure you select the framework 4.7.2. Click OK. Now lets select the Empty MVC solution. Click OK.