English 中文(简体)
CS0121 为什么同一方法/名称空间和签名之间相矛盾?
原标题:CS0121 :: Why the method call is ambigous between identical methods/namespaces and signatures?
  • 时间:2024-02-17 15:14:34
  •  标签:
  • winui-3

正在发现两种相同签名之间的错误:

“entergraph

我试图从社区工具包中利用这一扩展方法:

using Microsoft.UI.Dispatching;

#if WINDOWS
using CommunityToolkit.WinUI;
#endif


#if WINDOWS
                dispatcherQueue.EnqueueAsync(() => _eventAggregator.GetEvent<AppEventEvent>().Publish(e), DispatcherQueuePriority.Normal);
#endif
问题回答

如果你重新使用8.0套,这可能是兼容问题。 我建议你可以提及以下文字:https://github.com/CommunityToolkit/

Refer to the blog: https://devblogs.microsoft.com/ifdef-windows/windows- Community-toolkit-8-0-pre-release/

Note: Mixing and matching these new 8.0 packages with existing Windows Community Toolkit 7.x packages, especially UI controls, can lead to issues with the namespace changes and dependencies on common code (like the Visual Tree extensions).





相关问题
How to display all installed fonts in a ComboBox

I need to display all the user s installed fonts in a WinUI 3 ComboBox. I m using this code: <ComboBox x:Name="FontComboBox" ItemsSource="{Binding Source={x:Static Fonts....

图3

我似乎不能让我的WinUI 3 Button展示形象。

Can t use WinUI 3个Picker

I m试图在我的Windows App SDK(WinUI 3)申请中展示一个卷宗。 I m 将其列入C#。

热门标签