I had to modify the Microsoft.WebDeployment.targets file to be able to compile through Team City the Web Deployment 2008 project !

** **

   
        <AspNetMerge
**          ExePath=”C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin”
**          ApplicationPath=”$(TempBuildDir)”
          KeyFile=”$(_FullKeyFile)”
          DelaySign=”$(DelaySign)”
          Prefix=”$(AssemblyPrefixName)”
          SingleAssemblyName=”$(SingleAssemblyName)”
          Debug=”$(DebugSymbols)”
          Nologo=”$(NoLogo)”
          ContentAssemblyName=”$(ContentAssemblyName)”
          ErrorStack=”$(ErrorStack)”
          RemoveCompiledFiles=”$(DeleteAppCodeCompiledFiles)”
          CopyAttributes=”$(CopyAssemblyAttributes)”
          AssemblyInfo=”$(AssemblyInfoDll)”
          MergeXmlDocs=”$(MergeXmlDocs)”
          ErrorLogFile=”$(MergeErrorLogFile)”
          />