How can I get TFS2010 to run MSDEPLOY for me through MSBUILD?

IIS7 + related answer …. Ok – here’s what I ended up doing. More or less, following the post by Simon Weaver in this thread/question. But when it comes to the MSBuild settings .. most people here are using following setting: /p:MSDeployPublishMethod=RemoteAgent which is NOT RIGHT for IIS7. Using this setting means TFS tries to … Read more

MSDeploy skip rules when using MSBuild PublishProfile with Visual Studio 2012

Edit: It turns out you are right: the skip directive is ignored when executed from Visual Studio. Fortunately, there’s a workaround. What you want is this: <!– Skip the deletion of any file within the ErrorLog directory –> <MsDeploySkipRules Include=”SkipErrorLogFolder1″> <SkipAction>Delete</SkipAction> <ObjectName>filePath</ObjectName> <AbsolutePath>ErrorLog</AbsolutePath> </MsDeploySkipRules> In addition, you need to prevent VS from using the UI-task … Read more

MSBuild target package not found

I just got this working without installing VS2010 by following these steps on the build server: If .NET Framework 4 isn’t installed, install it Install the Web Deployment tool from http://www.iis.net/download/webdeploy From the C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0 folder on your dev machine copy the “Web” and “Web Applications” folders to the equivalent directory on your build server. … Read more

How to Publish Web with msbuild?

I got it mostly working without a custom msbuild script. Here are the relevant TeamCity build configuration settings: Artifact paths: %system.teamcity.build.workingDir%\MyProject\obj\Debug\Package\PackageTmp Type of runner: MSBuild (Runner for MSBuild files) Build file path: MyProject\MyProject.csproj Working directory: same as checkout directory MSBuild version: Microsoft .NET Framework 4.0 MSBuild ToolsVersion: 4.0 Run platform: x86 Targets: Package Command line … Read more

How do you include additional files using VS2010 web deployment packages?

Great question. I just posted a very detailed blog entry about this at Web Deployment Tool (MSDeploy) : Build Package including extra files or excluding specific files. Here is the synopsis. After including files, I show how to exclude files as well. Including Extra Files Including extra files into the package is a bit harder … Read more