Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Installing

gregmac edited this page Feb 13, 2012 · 1 revision

Installing NServiceMVC

NServiceMVC is a library that works with an ASP.NET MVC3 site.

Installing with Nuget Package Manager

The easiest way to install is via Nuget. Use Nuget GUI to add the NServiceMVC package to your MVC3 project. By default it will add the initialization code to the App_Start folder used by Web Activator.

You can now navigate to ~/metadata in your application and see the NServiceMVC metadata page. See ConfigurationOptions for more info on additional options for NServiceMVC.

Installing manually

NServiceMVC is only distributed as a nuget package. You can get the latest version from the TeamCity build server (provided by JetBrains and CodeBetter.com -- thanks!) at http://teamcity.codebetter.com/project.html?projectId=project182.

Open the nuget package as a zip file (using eg, 7-zip). You need to grab NServiceMVC.dll and DotLiquid.dll from the lib folder, and add a reference to those files in your MVC3 site.

You then need to call the NServiceMVC.NServiceMVC.Initialize() method from startup, such as in the Application_Start() method of Global.asax. See ConfigurationOptions for more details about initializing and configuring NServiceMVC.

That's it. By default, if everything worked, you should be able to navigate to ~/metadata in your application and see the NServiceMVC metadata page.

Clone this wiki locally