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
  • 相关阅读:
    vue在new的时候做了什么???
    vue中关于this的指向
    jquery 的本地存储 localStorage
    解读vue实例的双向绑定源码
    node修改数据遇到的坑
    node.js邮箱验证码
    webpack基础配置
    获取时间差。
    js获取时间方法
    node的buffer转换为字符串
  • 原文地址:https://www.cnblogs.com/shiningrise/p/4089272.html
Copyright © 2011-2022 走看看