It looks like Visual Studio is throwing the DEP0700 error because your WinUI 3 Optional package isn't recognized as part of a RelatedSet when deploying. This happens when the optional package isn't properly linked to the parent package in the MSIX Bundle.
Possible Fixes:
Ensure the Optional Package is in the Same MSIX Bundle
Check Your AppxManifest File
Use Dynamic Dependencies Instead
Verify Deployment Order
If you're still stuck, you can check out this Stack Overflow discussion or Microsoft's GitHub thread for more details.
if you need any more help i'm her [email protected]