0

In my ASP.NET MVC 5 project I have a folder "Config" with some config files including SlowCheetah transformations. I want to include this (transformed) files in my web.config using the configSource attribute:

<someElement configSource="Config\myconfigfile.properties" />

Unfortunately this inclusion only works if I set "Copy to output directory" for my partial config file and include the config file this way:

<someElement configSource="bin\Config\myconfigfile.properties" />

The original file in the Config folder is transformed on build, but the copied file in the bin\Config folder is the original file without the transformation. Is there any solution for this scenario?

Cœur
  • 37,241
  • 25
  • 195
  • 267
user1635311
  • 127
  • 1
  • 2
  • 10

0 Answers0