问题是我无法读取添加到项目路径中的文件:
<MyProject>/Files/Icons/Material
Run Code Online (Sandbox Code Playgroud)
我尝试使用以下代码片段读取代码
public Stream GetIcon(string iconName)
{
var iconPath = Path.Combine( "Files","Icons","Material",iconName);
return File.Create(path);
}
Run Code Online (Sandbox Code Playgroud)
但是,它显示该文件不存在的错误。请帮忙。