📜  相对路径 c# 代码示例

📅  最后修改于: 2022-03-11 14:48:42.944000             🧑  作者: Mango

代码示例2
var outPutDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly(). CodeBase);
var iconPath = Path.Combine(outPutDirectory, "Folder\\Img.jpg");
string icon_path = new Uri(iconPath ).LocalPath;