您的位置:首页 > 其它

获取和设置包括该应用程序的目录的名称

2014-11-11 13:56 148 查看
copy /Y "$(TargetDir)$(ProjectName).dll" "$(SolutionDir)PluginMvcWeb\Bin\"

<br />
// 获取程序的基目录。System.AppDomain.CurrentDomain.BaseDirectory
<br />
@System.AppDomain.CurrentDomain.BaseDirectory
<br />
// 获取模块的完整路径。System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
<br />
@System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
<br />
<br />
// 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。System.Environment.CurrentDirectory
<br />
@System.Environment.CurrentDirectory
<br />
// 获取应用程序的当前工作目录。System.IO.Directory.GetCurrentDirectory()
<br />
@System.IO.Directory.GetCurrentDirectory()
<br />
// 获取和设置包括该应用程序的目录的名称。
<br />
System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase:
<br />
@System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase
<br />
System.AppDomain.CurrentDomain.SetupInformation.PrivateBinPath:
<br />
@System.AppDomain.CurrentDomain.SetupInformation.PrivateBinPath
<br />
System.AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories :
<br />
@System.AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories

<br />
System.AppDomain.CurrentDomain.DynamicDirectory :
<br />
@System.AppDomain.CurrentDomain.DynamicDirectory
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: