"System.IO.FileNotFoundException: Could not load file or assembly" Error in MSTest

314
1
06-08-2023 12:05 PM
Labels (1)
ZhiyongHong
New Contributor II

We are currently upgrading to pro3.1 with .Net6 from pro2.9 with .Net4.8 and we have some test coverage that depend on arcgis pro  pro sdk. The way we handled this is via a configuration in .runsetting for MSTest. This has been working well in pro2.9 but it throw the sdk .dll could not be found exception on all the test cases that depend on sdk. Have been trying to figure out the reason for this and a solution for it for a long while but did not find anything yet. I am wondering if anyone have some experience for this and have a resolution.

Any context or input will be highly appreciated.

ZhiyongHong_0-1686250750781.pngZhiyongHong_1-1686250827790.png

 

Tags (2)
0 Kudos
1 Reply
ZhiyongHong
New Contributor II

Not sure if there are better solution there for this but adding this target to copy the dlls to the test project file look to be working fine for us. Just in case someone see this thread and looking for a solution.

ZhiyongHong_0-1686259097950.png

 

0 Kudos