c# - MSTest does not read config item on Jenkins -


i have normal web api 2 project , ms unit test project test it.

webapi2 project reads web.config in webapiconfig class using configurationmanager.appsettings["filename"]. created app.config in unit test project same config item, set property copy always make sure copied same folder test dll resides.

when run unit test locally in visual studio 2015, great. when run test on jenkins server failed. exception message on jenkins server obvious code reading config file gets blank data.

i browsed jenkins server workplace , see 2 files app.config , mytest.dll.config there. file has been copied properly. reading config still failed.

anyone might have clue?

i found solution enable nonisloation mode in jenkins.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -