Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

System.InvalidOperationException:“Operation is not valid due to the current state of the object.” #7

Open
scx1125 opened this issue Aug 8, 2024 · 1 comment

Comments

@scx1125
Copy link

scx1125 commented Aug 8, 2024

System.InvalidOperationException:“Operation is not valid due to the current state of the object.”
CurrentWindow.Activate();
ContextMenuItem menu = new ContextMenuItem
{
Title = "Open UF.Client Here",
AcceptDirectory = true,
Exe = "UF.Client.exe",
Param = "{path}"
};
await new ContextMenuService().SaveAsync(menu);

@ghost1372
Copy link
Contributor

Can you give me a example repro project?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants