【问题标题】:I am unable to install epson thermal printer nuget from nuget package manager console我无法从 nuget 包管理器控制台安装 epson 热敏打印机 nuget
【发布时间】:2019-11-12 18:40:26
【问题描述】:

我必须在我的 wpf 应用程序中使用 epson 热敏打印机,但我下载了 sdk 代码。但是当我在我的 Visual Studio 中从包管理器控制台命令安装 epson 时,它给了我以下错误。

安装包 Epson.Epos.Epos2 -Version 2.7.0

我在网上搜索了很多但没有找到任何线索,请指导我或分享一些帮助。

Package 'Epson.Epos.Epos2.2.7.0' does not exist in project 'My-WPF-POS'
Package 'Epson.Epos.Epos2.2.7.0' does not exist in folder 'D:\Projects    
\My-WPF-POS-Dir\packages'
Executing nuget actions took 1.4 sec
Install-Package : Could not install package 'Epson.Epos.Epos2 2.7.0'. You                    
are trying to install this package into a project that 
targets '.NETFramework,Version=v4.6', 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.
At line:1 char:1

+ 安装包 Epson.Epos.Epos2 -Version 2.7.0

我想从 nuget manager 安装 epson 热敏打印机,然后我想将它与我的 POS 软件集成。

谢谢

【问题讨论】:

  • 错误似乎很明显。您正在为.net 4.6 编译,它与它不兼容。
  • 但如果我将框架更改为 4.0,4.5,4.6,4.7,它会显示相同的错误。如果我更改为 4.5 或 4.0,某些代码将无法运行并引发错误。
  • 你需要找出它应该使用的版本,而不是猜测
  • 但它仅显示 Windows 8,10 兼容性,其网站上没有其他详细信息
  • 那我建议你联系作者,因为在 nuget 包中我没有看到 .net 版本信息类型的东西

标签: c# wpf thermal-printer epson


【解决方案1】:

Epson.Epos.Epos2 NuGet 包以 UWP 为目标。它与 WPF 不兼容。

the official website 似乎有一个 .NET(与 WPF 兼容)版本可供下载。我建议你试试这个。无论哪种方式,您都无法在 WPF 应用程序中使用 Epson.Epos.Epos2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-12-19
    • 1970-01-01
    • 2022-10-17
    • 2013-01-08
    • 1970-01-01
    • 1970-01-01
    • 2014-07-24
    相关资源
    最近更新 更多