Application.StartupPath 
这意思?

解决方案 »

  1.   

    在安装程序中无法取到Application.StartupPath,这个办法行不通!
    不过还是感谢 minajo21(大眼睛) 的支持!
      

  2.   

    Environment.CurrentDirectory;
    System.IO.Directory.GetCurrentDirectory();
    Path.GetFullPath(@"./")
    方法都是行不通!大家看看还有没有办法!
      

  3.   

    Server.MapPath(".");其实这个问题有很多人已经问过了,包括我。希望对你有所帮助。
      

  4.   

    System.Reflection.Assembly curPath = System.Reflection.Assembly.GetExecutingAssembly();
    string path = curPath.CodeBase;
    个绝对可以,我现在还在用,获取当前路径