Old Website does not have a project file and it is quite troublesome to build project files for those old sites. So what we can use transformation on those web.config files?

An easy way is to create publish profiles to transform. It is quick and will work right away locally with your Visual Studio. So this is a very efficient way for developers to “publish” websites to their local/not-integrated servers.

However, how can we utilize it with MSBuild and even Build steps in the latest TFS (TFS 2015 Update 2) Build pools ?

 

/p:PublishProfile=Test /p:DeployOnBuild=true /p:PublishUrl=$(MSBuildOutput)\Website /p:VisualStudioVersion=14.0

Advertisements