petrppe
petrppe

Reputation: 155

Direct link to resource file in class library

I have got file.xml in my class library solution and in a class I access to it like this:

var xmlFile = "file.xml"

Is possible to put there any path to build-embedded file.xml so if I use dll later I don't need to load that file.xml as a resource?

Upvotes: 0

Views: 77

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292535

No, embedded resources are not accessible directly through a path; you need to load them manuallty.

Upvotes: 1

Related Questions