Take the 2-minute tour ×

Is there any existing solution to embed the app.config file into the resulting assembly? I know there's costura for embedding DLL's into the assembly (costura also provides a really nice VS plugin!)

Some equalient project for the app.config?

share|improve this question
Then it is no longer configuration... –  Andrew Barber Jun 19 '12 at 8:12
It is! I want my WCF config in the file, but I also want no one to change the config. –  GameScripting Jun 19 '12 at 10:03
add comment

1 Answer

up vote 2 down vote accepted

Its not really config if you are not allowed to configure it. Why dont you set these things in code instead? That way only a dev can change them and there is no need for a config file?

share|improve this answer
Cause I am lazy and I don't want to transform my complete WCF config with custom bindings etc. into code config. –  GameScripting Jun 19 '12 at 10:29
lol, an honest admission there! There may be a way to get round this issue but the problem you are hitting is that the .net default behaviour is to have the .config file separate so it CAN be configured. Its like providing a UI to configure your system and then making all the fields read-only! –  Penfold Jun 19 '12 at 10:39
But even the UI would be useful, cause you could see the default config, and that's exaclty what I want! –  GameScripting Jun 19 '12 at 10:43
add comment

Your Answer


