c# - 由于不兼容,无法安装 toast 通知

标签 c# wpf notifications

安装toast通知包时出现如下错误

PM> Install-Package Mantin.Controls.Wpf.Notification
Installing 'Mantin.Controls.Wpf.Notification 3.2.0.0'.
You are downloading Mantin.Controls.Wpf.Notification from Lawrence Mantin, the license agreement to which is available at https://toastspopuphelpballoon.codeplex.com/license. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.

Successfully installed 'Mantin.Controls.Wpf.Notification 3.2.0.0'.
Adding 'Mantin.Controls.Wpf.Notification 3.2.0.0' to App. Uninstalling
'Mantin.Controls.Wpf.Notification 3.2.0.0'. Successfully uninstalled
'Mantin.Controls.Wpf.Notification 3.2.0.0'. Install failed. Rolling
back...

Install-Package : Could not install package 'Mantin.Controls.Wpf.Notification 3.2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

最佳答案

您需要做的就是将您的目标框架更改为 4.6 或更高版本。

关于c# - 由于不兼容,无法安装 toast 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43691135/

相关文章:

c# - FileHelpers - 错误转换 '"""ID""' to type: ' Int32'

wpf - 如何使 WPF 应用程序在 Web 浏览器上运行

wpf - 在 WPF 中将文本 block 添加到椭圆

Android通知仅播放声音

c# - 由于空引用,订阅的事件未触发

c# - 在 Java 应用程序中解析 C#

c# - Unity 5.2.2 将 Visual Studio 改回 MonoDevelop

c# - MVVM:如何设计托管不同应用程序的窗口?

android - 避免取消从最近的应用程序列表中删除应用程序的通知

iOS 本地通知和 APN : what can I use it for?