Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3983194
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:37:06+00:00 2026-05-20T05:37:06+00:00

my continuous integration server (TeamCity) is configured to run all the unit tests in

  • 0

my continuous integration server (TeamCity) is configured to run all the unit tests in our app on build. Prior to running those tests, i need to change some of the appSettings to make them valid for our CI server. I’m achieving something similar for my web project by using the deployment project provided with Visual Studio. Can i do the same for a Test project?

Thanks, Gonzalo

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:37:07+00:00Added an answer on May 20, 2026 at 5:37 am

    It’s possible to use Web.config Transformations for App.config files through a workaround.

    You simply have to invoke the appropriate MSBuild tasks at the right stage in your build process.
    Add this code snippet to your project file:

    <UsingTask
        TaskName="TransformXml"
        AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll" />
    
    <Target Name="AfterCompile" Condition="exists('App.$(Configuration).config')">
        <!-- Generates the transformed App.config in the intermediate directory -->
        <TransformXml
            Source="App.config"
            Destination="$(IntermediateOutputPath)$(TargetFileName).config"
            Transform="App.$(Configuration).config" />
        <!-- Forces the build process to use the transformed configuration file -->
        <ItemGroup>
            <AppConfigWithTargetPath Remove="App.config"/>
            <AppConfigWithTargetPath
                Include="$(IntermediateOutputPath)$(TargetFileName).config">
                <TargetPath>$(TargetFileName).config</TargetPath>
            </AppConfigWithTargetPath>
        </ItemGroup>
    </Target>
    

    Then add additional App.config files to your project for each build configuration where you wish to apply a transformation. For example:

    <ItemGroup>
        <None Include="App.config" />
        <None Include="App.Release.config">
            <DependentUpon>App.config</DependentUpon>
        </None>
    </ItemGroup>
    

    Related resources:

    • Web.config Transformation Syntax for Web Application Project Deployment
    • .Config File Transformation
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In using our TeamCity Continuous Integration server we have uncovered some issues that we
We've just started to use TeamCity as a continuous integration server. There's a problem
I'm compiling a NAnt project on linux with TeamCity Continuous Integration server. I have
We are using TeamCity v4 and NAnt for continuous integration builds on a server
On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is
I'm trying to build RIA-enabled Silverlight project on the continuous integration server. There is
Has anyone used Hudson as a Continuous-Integration server for a C++ project using UnitTest++
Let's say we have a continuous integration server. When I check in, the post-hook
Our continuous integration system currently runs a perl script to parse our sln/proj files
Are there any continuous integration frameworks for CL? Specifically, I'm looking for: Automated build,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.