zoukankan      html  css  js  c++  java
  • 获取和设置包括该应用程序的目录的名称

    copy /Y "$(TargetDir)$(ProjectName).dll" "$(SolutionDir)PluginMvcWebBin"
    
    <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
  • 相关阅读:
    Notification的使用
    Spring面向切面之AOP深入探讨
    使用注解配置Spring框架自动代理通知
    回顾Spring框架
    Spring利器之包扫描器
    Spring 核心概念以及入门教程
    Struts 2之动态方法调用,不会的赶紧来
    Struts2之过滤器和拦截器的区别
    Struts 2开讲了!!!
    Mybatis开篇以及配置教程
  • 原文地址:https://www.cnblogs.com/shiningrise/p/4089272.html
Copyright © 2011-2022 走看看