Get Relative Path to Linked Resource in C#

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-03-27T22:14:27Z Indexed on 2010/03/27 22:23 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

I have a number of linked resources (text files in this case) in a C# project I am working on. I know the resources are linked via relative path in the Resources file. Is there any way to get that relative path from within the C# code?

If there isn't, what I am trying to do is to pass that resources file to an external application as a commandline argument. If I can't do it the first way (which would obviously be the easiest) any other suggestions would be much appreciated. Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET