用户登录
用户注册

分享至

C#取得Web程序和非Web程序的根目录的N种取法总结

  • 作者: 这个人很懒_连昵称都没有
  • 来源: 51数据库
  • 2021-08-07
非web程序

1.appdomain.currentdomain.basedirectory

2.environment.currentdirectory

3.httpruntime.bindirectory

the path to the current application's/bin directory.


web程序

httpcurrent.context.server.mappath();
软件
前端设计
程序设计
Java相关