📜  控制台应用程序中的 asp.net 核心相对文件路径 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:21.850000             🧑  作者: Mango

代码示例1
using System.IO;

// make sure the file's properties are:
//Build Action: Content
//Copy to Output Directory: Copy if newer
string filePath = (new FileInfo("ContainingFolder/fileName.txt")).FullName;