tags:

views:

11

answers:

0

I've read all I can stand about .NET resources and haven't found an answer to my question.

I am trying to create a resource for a text file in my Test project. The file is in the solution in a folder called "Test Resources". My question is, what is the difference between using the Resource designer to add the resource as opposed to setting the Build Action to Resource or Embedded Resource?

If I use the designer approach I can reference the file via Resources.MyTextFile. What kind of resource does this create (linked or embedded)?

If I don't use the designer and just set the Build Action of my file to "Resource", what does that actually do? I know if I set it to "Embedded Resource" I can use reflection to get the resource.

Could someone please concisely summarize all this resource behavior and possibly provide some best practices?

Thanks a bunch!