No app.config is picked up while
Dear AppVeyor Team.
We are experiencing some difficulties building our project: https://ci.appveyor.com/project/alexed1/dockyard/build/1.0.115/tests
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.
Can you help?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 21 Jul, 2015 03:43 AM
Hi Yakov,
What testing framework do you use?
2 Posted by Yakov Gnusin on 21 Jul, 2015 03:44 AM
Hi Feodor, we use NUnit.
Support Staff 3 Posted by Feodor Fitsner on 21 Jul, 2015 03:50 AM
I remember testing that some time ago and it worked. Look at this very simple test project using NUnit: https://github.com/FeodorFitsner/nunit-config-test
This is app.config: https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUni...
...and this is the test reading values from config: https://github.com/FeodorFitsner/nunit-config-test/blob/master/NUni...
Build results in AppVeyor: https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/bui...
The main point you should pay attention to is app.config being copied to the output directory with
<test_assembly>.dll.configname. Look at line #27 here: https://ci.appveyor.com/project/FeodorFitsner/nunit-config-test/bui...Hope that helps.
4 Posted by Yakov Gnusin on 21 Jul, 2015 04:00 AM
does it make any difference if config file in project is named "app.config" or "App.config" ?
Support Staff 5 Posted by Feodor Fitsner on 21 Jul, 2015 04:10 AM
I don't think so. Make sure *.dll.config appears in output directory by adding
dircommand toafter_build.6 Posted by Yakov Gnusin on 21 Jul, 2015 05:01 AM
Feodor, we have tried that, config file exists.
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."
Can you help?
7 Posted by Yakov Gnusin on 21 Jul, 2015 05:04 AM
Okay we got this fixed by incrementing build version.
Support Staff 8 Posted by Feodor Fitsner on 21 Jul, 2015 05:08 AM
Can you add me ([email blocked]) to collaborators (https://ci.appveyor.com/team), so I can see build results?
9 Posted by Yakov Gnusin on 21 Jul, 2015 05:21 AM
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.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.