创建Json文件
更改属性
【代码】根据dll路径获取
Assembly assembly = Assembly.GetExecutingAssembly();
string assemblyPath = assembly.Location;
string relativeDllPath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(assemblyPath), "Json\\test.json");
创建Json文件
更改属性
【代码】根据dll路径获取
Assembly assembly = Assembly.GetExecutingAssembly();
string assemblyPath = assembly.Location;
string relativeDllPath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(assemblyPath), "Json\\test.json");