简体   繁体   English

我无法从nuget软件包管理器控制台安装epson热敏打印机nuget

[英]I am unable to install epson thermal printer nuget from nuget package manager console

I have to use epson thermal printer with my wpf application, but i downloaded the sdk code.but when i install epson from package manager console command in my visual studio it is giving me below error. 我必须在wpf应用程序中使用epson热敏打印机,但是我下载了sdk代码。但是,当我从Visual Studio中的程序包管理器控制台命令安装epson时,出现以下错误。

Install-Package Epson.Epos.Epos2 -Version 2.7.0 安装软件包Epson.Epos.Epos2-版本2.7.0

i search alot on internet but could not find any clue, please guide me or share some help. 我在互联网上搜索了很多,但找不到任何线索,请指导我或分享一些帮助。

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

+ Install-Package Epson.Epos.Epos2 -Version 2.7.0 +安装软件包Epson.Epos.Epos2-版本2.7.0

I want to install epson thermal printer from nuget manager and then i want to integrate it with my POS software. 我想从nuget Manager安装epson热敏打印机,然后将其与POS软件集成。

thanks 谢谢

The Epson.Epos.Epos2 NuGet package targets UWP. Epson.Epos.Epos2 NuGet包面向UWP。 It's not compatible with WPF. 它与WPF不兼容。

There seems to be a .NET (WPF compatible) version available for download at the official website . 似乎有一个.NET(与WPF兼容)版本可以在官方网站上下载。 I suggest that you try this one. 我建议你试试这个。 Either way, you won't be able to use Epson.Epos.Epos2 in a WPF application. 无论哪种方式,您都将无法在WPF应用程序中使用Epson.Epos.Epos2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM