我想获取项目文件中的文件路径。
我试过
var path = @"Helper\automationJson.json"
Run Code Online (Sandbox Code Playgroud)
bin/debug但这是从as获取文件C:\AutomationActivityTrace\bin\Debug\netcoreapp2.2\Helper\automationJson.json
也尝试过
string path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, subfolder name, filename);
Run Code Online (Sandbox Code Playgroud)
还有很多,但我没有得到我想要的。
我需要的路径为C:\AutomationActivityTrace\Helper\automationJson.json
有人可以帮忙吗?