3

In this video Scott Hanselman shows how you can apply transformations to the web config so that you can have different configuration details for development and deployment.

This doesn't seem to be an option in my "WCF service" project though.

Is this posssible? If so how? Otherwise what are the alternatives?

Positonic
  • 9,151
  • 14
  • 57
  • 84
  • 2
    The MS XSLT Tranform is applicable to website projects and does it during the build. If you want the similar feature you can install a extension called slow cheetah. Check this link : http://www.hanselman.com/blog/SlowCheetahWebconfigTransformationSyntaxNowGeneralizedForAnyXMLConfigurationFile.aspx – Rajesh Mar 07 '12 at 13:35
  • 2
    Rajesh is right, a WCF Service Library project will not support web.config transforms but either a WCF web site project or a WCF Service Application project do support web.config transforms. – Sixto Saez Mar 07 '12 at 14:25
  • You may have noticed that your service library project has no web.config. – John Saunders Mar 07 '12 at 15:42
  • 2
    When is used publish on WCF Service Library (with configured slow cheetah extension) it create a build output with nameOfService.dll.config which is correct transformed but the web.config which is created is not transformed. Is there any possibility to get also web.config transformed? – DevUser Sep 27 '13 at 11:41

0 Answers0