首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >命名空间'Microsoft‘中不存在类型或名称空间名称'PointOfService’(是否缺少程序集引用?)

命名空间'Microsoft‘中不存在类型或名称空间名称'PointOfService’(是否缺少程序集引用?)
EN

Stack Overflow用户
提问于 2015-10-08 13:36:58
回答 1查看 1.9K关注 0票数 0

我已经将Microsoft.PointOfService.dll添加到项目的引用中,VS甚至正确地解析了它的成员类,但是,当我试图构建时,我得到了标题错误:

命名空间'Microsoft‘中不存在类型或名称空间名称'PointOfService’(是否缺少程序集引用?)

我的代码如下:

代码语言:javascript
复制
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,但是这些操作都没有工作。

有人能提出解决办法吗?

EN

回答 1

Stack Overflow用户

发布于 2015-10-11 19:16:29

根据@StephenRoss对问题的评论,我更改了项目使用的.NET框架版本,从而解决了问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33017460

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档