To setup sitecore visual studio solution we need following steps accordingly:
- Create a new MVC solution in Visual Studio
- Replace or copy web.config & global.asax files from inetpub->wwwroot->"Sitecore application" folder and paste it to new MVC application created in step 1.
- Similarly replace web.config files from View folder same as step 2 into new MVC application created in Step 1
- Add reference to following dlls (I mostly create a new folder in MVC solution/application created in step 1 called library and copy paste following files):
- Sitecore.Kernel.dll
- Sitecore.MVC.dll
- Sitecore.MVC.Analytics.dll
- Add new view to verify above configuration by using Sitecore intellisense for:
- @using Sitecore.MVC
- @Html.Sitecore().CurrentItem.Name
0 comments:
Post a Comment