Recently was given the task to load up a MVC project into TeamCity. With that being said, i learned that MVC Applications MUST BE Deployed, unlike most "Normal" web-applications.
All that being considered, i build the project Build Task just like any others, did some trouble shooing and ALOT of google'ing.
Here is what i ended up with:
- Runner type: MSBuild
- MSBuildVersion: 4.0
- MSBuild ToolsVersion: 4.0
- Run platform: x64
- Targets: Build;Publish
- Command Line Parameters: /p:Configuration=Staging;PackageLocation="C:\Sites\temp_publish\project\prod\project.zip"
I have read that i need to install Web Deployment Project for the server but we dont have Visual Studio installed on the server, only TeamCity 8.x.
Personally, i want to try and keep development software off the server, so that it is a true mock-up of what the client server will be like.
What other settings do i need to put in, or if i have to split the Build & Deploy into two seperate tasks, what should the 2nd task be?