Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The right-click menu implemented by IExplorerCommand has problems using apis under the Windows.ApplicationModel namespace #1801

Open
Gaoyifei1011 opened this issue Sep 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Gaoyifei1011
Copy link
Contributor

Describe the bug

The right-click menu implemented by IExplorerCommand has problems using apis under the Windows.ApplicationModel namespace

----------------------------------

IExplorerCommand 实现的右键菜单使用 Windows.ApplicationModel 命名空间下的 API 时有问题


To Reproduce

Use c# WinRT to implement an IExplorerCommand, while enabling Native AOT compilation, after the right-click menu is closed for a period of time, it is found that other right-click menu corresponding process dllhost.exe will automatically uninstall the right-click menu dll and automatically exit. And I implemented the right-click menu dll due to the use of the Windows.ApplicationModel namespace under the API, the process will always live, will not actively quit

----------------------------------

使用 c# WinRT 实现一个 IExplorerCommand,同时启用 Native AOT 编译,在右键菜单关闭一段时间后,发现其他右键菜单对应的进程 dllhost.exe 会自动卸载右键菜单 dll 并自动退出,而我实现的右键菜单 dll 由于使用了 Windows.ApplicationModel 命名空间下的 API,进程会一直存活,不会主动退出


After other dllhost.exe is closed, only the dll that uses the API in the Windows.ApplicationModel namespace is still alive

----------------------------------

其他 dllhost.exe 关闭后,只有使用 Windows.ApplicationModel 命名空间下的 API 的 dll,进程依然存活

{1A58E976-2571-46CB-96C0-147DADC399D6}
184fede089405c45d65e503870be4381

Samples(例子):https://github.com/cnbluefire/ExplorerExtensions.Sample


Expected behavior

No, I wonder what caused that

----------------------------------

没有,很想知道是什么原因导致的


Version Info

CsWinRT 2.1.3
.NET SDK 9.0.0.RC1
Windows SDK 10.0.26100.1


Additional context

None

@Gaoyifei1011 Gaoyifei1011 added the bug Something isn't working label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant