开发者

Get path of a file from Resources.resx

How do you get the path from a file in the Resources.resx file?

I have the following code:

var value = Properties.Resources.ErrorLog;

Where ErrorLog is .txt file. The code returns the content of the file not the path. Right-clicking and see where it is located is not an option sinc开发者_运维知识库e the project is used on more than one computer.


There is no spoon path.

These resources are embedded in your EXE file; they don't exist as separate filers at runtime.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜