This question is just a reference to myself and to whomever gets here while searching for a solution to this issue.
The Copy Local
in the reference was set to True
but the DLL
was not copied to the build folder.
Since I used this resource library only in XAML
, I had to add a using
statement:
using ResourceLibrary;
in the referencing code (actually, the code that called the referencing code, which was either the app or the unit-test)
This made the DLL
created in the destination build directory.
Edit:
Sometimes even using ResourceLibrary
doesn't work. The solution is creating some empty static method in the code-behind of the ResourceLibrary
:
namespace ResourceLibrary {
public static class ReferencePoint {
public static ReferToMe() {}
}
}
And calling it from the referencing code:
ReferencePoint.ReferToMe();