小弟目前在做个插件, private void radioButton5_CheckedChanged(object sender, EventArgs e)
{
string path = null;
path = Environment.CurrentDirectory;
Process.Start("explorer.exe", path);
Environment.Exit(0);
}
此时path的路径指的是D:\Backup\我的文档\Visual Studio 2008\Projects\tools\tools\bin\Debug.这个是再正常调试的模式下获取到的path是正确的。但是当我将次插件用到工具中后,此时却打开的是工程的根目录,求指教。
{
string path = null;
path = Environment.CurrentDirectory;
Process.Start("explorer.exe", path);
Environment.Exit(0);
}
此时path的路径指的是D:\Backup\我的文档\Visual Studio 2008\Projects\tools\tools\bin\Debug.这个是再正常调试的模式下获取到的path是正确的。但是当我将次插件用到工具中后,此时却打开的是工程的根目录,求指教。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货