Do you have any XML files regarding your binaries / classes library? If so, just get the assembly object and retrieve its location.
Use System.Reflection.Assembly.GetExecutingAssembly()to get the assembly object. This will be the assembly that calls GetExecutingAssembly - so if you call it in the class library, it will return the assembly of the class library. Assembly.Locationcontains the path to the assembly, and you can use the functions in System.IO.Pathto change the path to a pointer to a subdirectory.
If, as you noted in the comment, XML files are embedded resources, you can use the following code to get them:
var asm = System.Reflection.Assembly.GetExecutingAssembly();
foreach (string resourceName in asm.GetManifestResourceNames()) {
var stream = asm.GetManifestResourceStream(resourceName);
}
, , .NET, , .