dwoods
dwoods

Reputation: 65

OctoPack for deployment packaging all web.config files

I am using OctoPack in my asp.net project to package for deployment to my environments. I noticed that OctoPack is packaging all the web.config transformation files in the package. How do I get it to transform into the one web.config so that they are not all sent to all environments?

Note: I would like to keep the default behavior of not setting up a nuspec file if possible.

Upvotes: 2

Views: 1746

Answers (1)

Magge
Magge

Reputation: 266

Transformation is not done by OctoPack but by Octopus Deploy during the deployment.

I will assume you're using Octopus Deploy. If your Nuget package contains the transform files (like f.ex. Web.Release.config) then all you need to do is to goto your projects Process and the relevant step, click the Features link and enable Config transforms. You will have new options where you can also specify additional transforms you want to run.

More details under "Config transformations" here http://docs.octopusdeploy.com/display/OD/Configuration+files

Upvotes: 4

Related Questions