c# - Use external existing file as resource file in .NET -


i'm writing integration tests sql scripts live in folder separate project. since setup of machine i'm writing on tests on differs machine run on, include them resource files rather hard coding paths. default behavior adding existing file resource file copies file, not want in case of sql scripts updated.

does know best way resource file reference sql scripts in folder separate project, or somehow copy them assembly @ compile time don't have load them via absolute/relative paths?

edit: clarity, i'm trying resource file act symlink original file @ compile time. adding existing file resource in file in visual studio makes copy of file, means changes original not propagated resource file.

after asking on irc, guided me looking for. able add existing file project as link (there arrow on add box when in file dialog), , set it's build action property embedded resource

https://support.microsoft.com/en-us/kb/306234

daniel posted link on how read embedded resource:

how read embedded resource text file


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -