tag:help.appveyor.com,2012-11-13:/discussions/problems/2538-no-appconfig-is-picked-up-whileAppVeyor: Discussion 2018-10-19T08:17:20Ztag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T03:37:34Z2015-07-21T03:37:35ZNo app.config is picked up while <div><p>Dear AppVeyor Team.<br>
We are experiencing some difficulties building our project:
<a href="https://ci.appveyor.com/project/alexed1/dockyard/build/1.0.115/tests">
https://ci.appveyor.com/project/alexed1/dockyard/build/1.0.115/tests</a></p>
<p>All tests that require app.config - fail. Looks like app.config
file is not picked by the test running service. All test run on
local machine though.</p>
<p>Can you help?</p></div>Yakov Gnusintag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T03:43:44Z2015-07-21T03:43:44ZNo app.config is picked up while <div><p>Hi Yakov,</p>
<p>What testing framework do you use?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T03:44:29Z2015-07-21T03:44:30ZNo app.config is picked up while <div><p>Hi Feodor, we use NUnit.</p></div>Yakov Gnusintag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T03:50:30Z2015-07-21T03:50:30ZNo app.config is picked up while <div><p>I remember testing that some time ago and it worked. Look at
this very simple test project using NUnit: <a href="https://github.com/FeodorFitsner/nunit-config-test">https://github.com/FeodorFitsner/nunit-config-test</a></p>
<p>This is app.config: <a href="https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUnitConfigTests/App.config">
https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUni...</a><br>
...and this is the test reading values from config: <a href="https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUnitConfigTests/MyTests.cs">
https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUni...</a></p>
<p>Build results in AppVeyor: <a href="https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/build/1.0.31">
https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/bui...</a></p>
<p>The main point you should pay attention to is app.config being
copied to the output directory with
<code><test_assembly>.dll.config</code> name. Look at line
#27 here: <a href="https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/build/1.0.31#L27">
https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/bui...</a></p>
<p>Hope that helps.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T04:00:55Z2015-07-21T04:00:58ZNo app.config is picked up while <div><p>does it make any difference if config file in project is named
"app.config" or "App.config" ?</p></div>Yakov Gnusintag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T04:10:05Z2015-07-21T04:10:05ZNo app.config is picked up while <div><p>I don't think so. Make sure *.dll.config appears in output
directory by adding <code>dir</code> command to
<code>after_build</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T05:01:14Z2015-07-21T05:01:16ZNo app.config is picked up while <div><p>Feodor, we have tried that, config file exists.</p>
<p>We're trying to display it's contents, however "rebuild commit"
command no longer runs, error message says "Build version 1.0.121
already exists."</p>
<p>Can you help?</p></div>Yakov Gnusintag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T05:04:42Z2015-07-21T05:04:42ZNo app.config is picked up while <div><p>Okay we got this fixed by incrementing build version.</p></div>Yakov Gnusintag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T05:08:22Z2015-07-21T05:08:22ZNo app.config is picked up while <div><p>Can you add me (<a href="mailto:feodor@appveyor.com">feodor@appveyor.com</a>) to
collaborators (<a href="https://ci.appveyor.com/team">https://ci.appveyor.com/team</a>),
so I can see build results?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/374354052015-07-21T05:21:13Z2015-07-21T05:21:14ZNo app.config is picked up while <div><p>Feodor, we found an issue. It has to do with project
dependencies between tests. We will reorganize dependencies between
test projects that should help. Thank you for your support.</p></div>Yakov Gnusin