安装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/