0

I'm adding a Project (console application) to an already existing web project in Microsoft Visual Studio 2012. I'm trying to add a number of config files depending on environment application is run in...the files highlighted in the red box in the picture below

enter image description here

I've had a look online and it suggests right clicking on the App.Config file and selecting 'Add Config Transform', however, this option does not appear. I also read you can't 'Add Config Transform' for web applications. However, the Project I'm trying to add these additional config files to is a console application.

Any suggestions on how to achieve the multiple config files is greatly appreciated.

Thanks!

Filburt
  • 17,626
  • 12
  • 64
  • 115
CodeLearner
  • 389
  • 2
  • 6
  • 14

1 Answers1

0

As I recall, VS 2012 only did transforms for web.config. So when we had the same problem we solved it by adding the SlowCheetah Nuget package, which adds the ability to auto create transforms for each of your builds, for app.configs as well.

Have a look at this post as well, which discusses this: App.Config Transformation for projects which are not Web Projects in Visual Studio?

Hope this helps!

D J White
  • 1
  • 2