Monday, September 28, 2009

Adding FLV files to the TFS build output

I have several flash videos that I need to include in an ASP.NET web site. From the build servers perspective they should be static content.

For some reason the TFS build server wasn't copying them over to the Binary drop location as part of the _CopyWebApplication target but the SWF files were.

Turned out to be a simple fix. The SWF files were set as "Build Action" "Content" while the FLV files were "Build Action" "None". Changing them to content fixed the problem.


On a side note. I needed to add the MIME type for FLV files to IIS.
.flv   video/x-flv