0

我必须在 C# 中的 Server.MapPath 方法的帮助下在服务器上创建文件夹,但我不能在项目中使用 HttpContext 类,有什么解决方案吗?

System.IO.Directory.CreateDirectory(Server.MapPath(@"~/pix/"));

它不允许我使用 Server.MapPath 方法

4

0 回答 0