Is there a way to get the path for the assembly in which the current code resides? I do not want the path of the calling assembly, just the one containing the code.
<
The current directory where you exist.
Environment.CurrentDirectory; // This is the current directory of your application
If you copy the .xml file out with build you should find it.
or
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetAssembly(typeof(SomeObject));
// The location of the Assembly
assembly.Location;