摘要:
//获取包含清单的已加载文件的路径或 UNC 位置。 public static string sApplicationPath = Assembly.GetExecutingAssembly ( ).Location; //result: X:\xxx\xxx\xxx.dll (.dll文件所在的目录+.dll文件名) //获取当前进程的完整路径,包含文件名(进程名)。 string str... 阅读全文
摘要:
如果让vs不生成这些“垃圾”(还有相应的批准文件.vshost.exe.config),可以这样来设置:项目→“某项目”属性→ 调试,將 “启用the Visual Studio 宿主进程”選項前的勾勾取消即可。 阅读全文