Meanwhile I have researched a couple of ways to deal with the situation.
For instance, it is apparently possible to add Condition
attributes with the value $(VisualStudioVersion) != ''
in order to make them conditional on whether Visual Studio is being used.
However, on a whim (after reading this answer) I tried something entirely different: I replaced my nested namespaces
namespace Baz
{
namespace Bar
{
[...]
}
}
with dotted namespace notation:
namespace Baz.Bar
{
[...]
}
and voilà, the MissingManifestResourceException
no longer exists, even with the original DependentUpon
clause.
Problem solved, but I don't know why.