启用以让 ReactiveUI 开始工作 (WPF)
Enable to get the ReactiveUI getting started working (WPF)
描述
从 git 下载入门项目后:
https://github.com/reactiveui/ReactiveUI.Samples/tree/main/wpf/getting-started
我无法使 xaml 部分正常工作。
我在主 window 上收到以下错误:命名空间“http://reactiveui.net”
中不存在名称“ReactiveWindow”
我恢复了 NuGet 包。
我重建了解决方案。
所有 C# 代码都像魅力一样工作,只有 xaml 视图和用户控件会出现此命名空间错误。
重现步骤
克隆存储库:https://github.com/reactiveui/ReactiveUI.Samples.git
打开解决方案:ReactiveUI.Samples/wpf/getting-started/ReactiveDemo.sln
恢复 nuget
重建解决方案
打开 MainWindow.Xaml
注意 xaml 错误
预期行为
项目构建和运行
有人能告诉我我错过了什么吗?感谢您的帮助。
我终于设法解决了这个问题。
我在 Window 声明中缺少属性 x:TypeArguments="MainWindowViewModel"。
描述
从 git 下载入门项目后: https://github.com/reactiveui/ReactiveUI.Samples/tree/main/wpf/getting-started
我无法使 xaml 部分正常工作。 我在主 window 上收到以下错误:命名空间“http://reactiveui.net”
中不存在名称“ReactiveWindow”我恢复了 NuGet 包。 我重建了解决方案。 所有 C# 代码都像魅力一样工作,只有 xaml 视图和用户控件会出现此命名空间错误。
重现步骤
克隆存储库:https://github.com/reactiveui/ReactiveUI.Samples.git 打开解决方案:ReactiveUI.Samples/wpf/getting-started/ReactiveDemo.sln 恢复 nuget 重建解决方案 打开 MainWindow.Xaml 注意 xaml 错误
预期行为
项目构建和运行
有人能告诉我我错过了什么吗?感谢您的帮助。
我终于设法解决了这个问题。 我在 Window 声明中缺少属性 x:TypeArguments="MainWindowViewModel"。