c# 如何找到项目中图片的相对路径

string path = System.Environment.CurrentDirectory;//非Web程序
if (System.Environment.CurrentDirectory != AppDomain.CurrentDomain.BaseDirectory)
{
        path = AppDomain.CurrentDomain.BaseDirectory;//asp.net 程序
        path += "Image\\DefaultImage.gif";

相关文章:

  • 2021-11-27
  • 2022-02-21
  • 2021-04-01
  • 2022-12-23
  • 2021-07-30
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-12-05
  • 2022-01-04
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案