Hi @水 知 ,
I see the issue is with x86 debugging exceptions and missing ARM64 publishing targets. I suspect this is related to project configuration and cached build files, as my tests with a sample WinUI app using H.NotifyIcon and CsWin32 succeeded on both platforms.
I recommend trying these quick steps to refresh your project setup:
- Clear your NuGet cache and restore the project. Run these commands in your terminal from your project folder:
dotnet nuget locals all --clear
dotnet restore -r win-arm64
- Update your .csproj file to explicitly include the required platforms and frameworks. Please ensure you have properties similar to this:
<Platforms>x86;x64;arm64</Platforms>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
If the issue persists, I want to request a bit more targeted evidence to help pinpoint the root cause:
- What is the exact error message and full stack trace you see when the x86 debugging fails?
- Could you share the contents of your .csproj file (removing any sensitive information)?
If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.
Thank you.