You should package the ASP site and the Media Files as 2 separate NuGet packages. This will allow you to update the ASP code and deploy it without having to deploy all the media files (assuming the code changes more often than the media).
Implementation Details
- Setup TeamCity to package the ASP site and the Media files as separately published NuGet packages.
- In Octopus Deploy add each of the 2 NuGet Packages as deployment steps for a single project
- When you create a new Release in Octopus select the newest package version for the ASP code and the previously released package version for the media files.
- When you deploy the release you can check a box to skip the deployment of the media files
Tips
- Use the Octopus variable "OctopusWebSiteName" to specify that your media files package should be deployed in a sub-directory of your ASP site. (Like "Default Web Site/Media") The variable can be scoped to a specific package so that it only applies when deploying that package.