To install the ASP.net application on our IIS server (without the need for Visual Studio), we check the project code from version control, and then run the msbuild.exe file in the project file. You can find msbuild.exe in the .Net framework folder, for example:
C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \
The only thing we needed to do was copy by target definitions from one of the development machines, which are usually stored in:
C: \ Program Files \ MSBuild \
It is safe to leave .csproj / .vbproj files in a web folder, since IIS will not serve them, because they will not have the MIME type installed on them, but you can delete them if you want.
This setting is also easily accessible for scenarios, which is a bonus.
source share