我已经将Microsoft.PointOfService.dll添加到项目的引用中,VS甚至正确地解析了它的成员类,但是,当我试图构建时,我得到了标题错误:
命名空间'Microsoft‘中不存在类型或名称空间名称'PointOfService’(是否缺少程序集引用?)
我的代码如下:
using Microsoft;
using Microsoft.PointOfService;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace oposfordotnet
{
public partial class Form1 : Form
{
PosExplorer explorer = new Microsoft.PointOfService.PosExplorer();
CashDrawer drawer;
}
}我以前从没吃过这个。似乎dll没有正确地写入到Microsoft命名空间中?这可能吗?
无论如何,我已经尝试删除引用并重新创建它并重新启动Visual,但是这些操作都没有工作。
有人能提出解决办法吗?
发布于 2015-10-11 19:16:29
根据@StephenRoss对问题的评论,我更改了项目使用的.NET框架版本,从而解决了问题。
https://stackoverflow.com/questions/33017460
复制相似问题