XDT - Transform on build
Hi,
I wondered if it's possible to have a multi-environment App.config setting and came across XDT. The built-in support for XDT is great, so I could quickly setup a debug/development version. However, I thought the transformation takes place whenever the solution is built, but looking at the App.config in both the debug and release folder, it seems they didn't get touched.
Is there a way to make the transformation happen on each build?
Please sign in to leave a comment.
Hi,
Actually, it should work and apply a transformation on each build. Could you please clarify if preview works for you transformations (Right-click on a transf-n file in Solution Explorer, select "Config transformations -> Preview transformation...")? How exactly do you build your project (which action do you use)?
Also, please share a screenshot of the settings page "File | Settings | Build, Execution, Deployment | Toolset and Build", and a simple solution to reproduce. You can upload all this information in a new support request.