[Core] Added CanReferenceProject() virtual method to DotNetProject

Part of the fix for bug #8988