![]() In the Views/web.config file of your Visual Studio project, add the following Sitecore namespaces to the list of namespaces: In the Solution Explorer in Visual Studio, set the Copy Local property of each DLL reference the NuGet Package Manager added to False. ![]() If you already have a reference to the package, try to either delete it or to align it with the version of the package in the Sitecore instance you develop for. This has the advantage that changes to the Visual Studio project are immediately available on the website.Ĭreating the project outside the web root, however, has a number of advantages and is a recommended practice: It is possible to create the Visual Studio project inside the web root of a Sitecore install. Sitecore is committed to use MVC in the future. You can use both rendering engines, but a single request must be rendered by either WebForms or by MVC. Sitecore supports both ASP.NET WebForms and MVC. You can use MVC as a rendering engine in Sitecore. Developers who are new to ASP.NET MVC should use the resources available from Microsoft to learn about the basics of working with this web application framework. This architectural pattern separates an application into three main components: the model, the view, and the controller. Using the NuGet package manager and the Sitecore feedĪSP.NET MVC is a web application framework from Microsoft that implements the model–view–controller (MVC) pattern. Creating the Visual Studio project outside the root of the Sitecore install
0 Comments
Leave a Reply. |