ServiceStackVS is a Visual Studio extension to be used along side the ServiceStack framework.
ServiceStackVS supports both VS.NET 2013 and 2012 and can be downloaded from the Visual Studio Gallery
- VS.NET 2012 Users must install the Microsoft Visual Studio Shell Redistributable
- It's also highly recommended to Update to the latest NuGet.
Alternatively if continuing to use an older version of the NuGet Package Manager you will need to click on Enable NuGet Package Restore after creating a new project to ensure its NuGet dependencies are installed.
We hope ServiceStackVS helps make ServiceStack developers more productive than ever and we'll look at continue improving it with new features in future. Suggestions and feedback are welcome.
Project templates included in the extension:
- ServiceStack ASP.NET Empty
- ServiceStack ASP.NET MVC5
- ServiceStack ASP.NET with AngularJS
- ServiceStack ASP.NET with Bootstrap
- ServiceStack ASp.NET with Razor
- ServiceStack Self Host Empty
These project templates are structured to encourage patterns to help kickstart your new ServiceStack application.
Starting a new ServiceStack ASP.NET with AngularJS application will give you 4 new projects.
- Host project
- Service Interface project
- Service Model project
- Unit Testing project
The Host project contains an AppHost which has been configured with the RazorFormat plugin as well as hosting all the required JavaScript packages like AngularJS, Bootstrap and jQuery. It is setup initially with a signle _Layout.cshtml using the default Bootstrap template and a default.cshtml which contains the HelloWorld demo.
The Host project has dependencies on the Service Model and Service Inteface projects. These are the projects that contain your request/response DTOs, validators and filters. This structure is trying to encourage have your data structures and services in separate projects make testing and reuse easier.
The Unit Testing project, also as a dependency on these projects as it tests them in isolation of the main Host project. In the template, we are using the BasicAppHost to mock the AppHost we are using in the Host project. The example unit test is using NUit to setup and run the tests.
The simple HelloWorld angular application that is provided in the template calls the /hello/{Name} route and displays the result in the <p> below.
This project requires the Visual Studio 2013 SDK to build the extension.






