app.config missing settings
I'm trying to build a few projects that contains an app.config settings file, and i'm having major problems with TeamCity treating them in a, for me, unexpected way.
My app.config contains some appSettings and 2 connection strings. Everything looks fine in Visual Studio but after TeamCity creates the NuGet package the app.config looks completely different - it's just the default content:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.5.2"/>
</startup>
</configuration>
I see this in the TeamCity build log:
[_CopyAppConfigFile] Skipping target "_CopyAppConfigFile" because all output files are up-to-date with respect to the input files.
and when i look in the build folder i can see my app.config with the right content AND the transformed application.exe.config this file is empty and obviously the one being sent on as it has the right name.
I'm not sure why this is happening or what to do form here. Why is TeamCity doing this with my app.config? If i just build using Visual Studio on my machine i get the right app.config and it's content.
Please sign in to leave a comment.
Hi Jacob,
Which TeamCity version are you using? Which type of build configuration is on use to run the build? If it works in your VS normally, please check the steps mentioned here, as they might point out what is going wrong: https://confluence.jetbrains.com/display/TCD10/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity
If none of this helps, please use the "Submit a request" button on the top of the page and send us the full build log.
I'm using 2017.2 (build 50574), EAP with a Visual Studio (sln) runner. I'm doing a rebuild on a release configuration on VS2017 with OctoPack. I'll also take a look at the link.