Relative paths with assemblies calling each other
I have
In
but when I call the unit tests it says
I tried to do that:
in
But then when running my unit tests I have the same, it thinks the relative paths are relative to
I've been using Python for years and if a path was relative in library 1, when library 2 would use library 1, the paths would be relative to library 1; not to library 2. And here I'm really confused.
Would really appreciate some help, I've been banging my head on this for the past hour
parent_dir/HaploDeep/models/some_files.onnx, parent_dir/HaploDeep/HaploDeep.cs and parent_dir/HaploDeep.Tests/Tests.csIn
HaploDeep.cs I want to open models/files.onnx so I dobut when I call the unit tests it says
System.IO.IOException: Model file models\model_1.onnx does not exists.I tried to do that:
in
HaploDeep.csBut then when running my unit tests I have the same, it thinks the relative paths are relative to
HaploDeep.Tests path:System.IO.IOException: Model file C:\...\HaploDeep.Tests\bin\Debug\net8.0\models\model_1.onnx does not exi...I've been using Python for years and if a path was relative in library 1, when library 2 would use library 1, the paths would be relative to library 1; not to library 2. And here I'm really confused.
Would really appreciate some help, I've been banging my head on this for the past hour
