I have a Web Site project which I am trying to deploy via TeamCity and WebDeploy.
Because this is a Web Site and NOT a Web Application I do not have a .vbproj or .csproj file.
I have come to the conclusion from this post here that I need to create a .publishproj file as MSbuild uses this as it's build file.
However when TeamCity invokes MSBuild it bails with the following error:-
Failed to start MSBuild.exe. Failed to detect default target(s) in the project file C:\TeamCity\buildAgent\work\d9dda73c7948f14a\MainSite\website.publishproj. Please define targets explicitly in the build configuration options on TeamCity Web UI. Project does not define DefaultTargets or InitialTargets.
I have looked inside the .publishproj file and there is no Target defined.
I have also followed Troy Hunt's You're deploying it wrong articles for a Web Application and this works fine.
Can anybody suggest how I Web Deploy a Web Site (NOT Web Application) from Team City ?