开发者

Get path of a file from Resources.resx

开发者 https://www.devze.com 2023-03-15 05:06 出处:网络
How do you get the path from a file in the Resources.resx file? I have the following code: var value = Properties.Resources.ErrorLog;

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

精彩评论

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

关注公众号