linux下借助mono编译C#提示未引用程序集(error CS0234)missing assembly reference
来源:互联网 发布:天神互动怎么样 知乎 编辑:程序博客网 时间:2024/05/29 02:35
程序中using System.Net.Http,编译时报错:test.cs(5,18): error CS0234: The type or namespace name `Http' does not exist in the namespace `System.Net'. Are you missing `System.Net.Http' assembly reference?
找了半天,才看明白应该是忘了引用使用的程序集(reference *.dll),在windows下用vs可以添加引用,在linux下编译的时候添加reference就行了。
编译时使用mcs /reference:System.Net.Http.dll test.cs 或则gmcs /reference:System.Net.Http.dll test.cs就行了。
如下图:
0 0
- linux下借助mono编译C#提示未引用程序集(error CS0234)missing assembly reference
- Mono fix compiled issue "Are you missing `System.Net.Http' assembly reference?"
- error CS0234: 命名空间“Microsoft”中不存在类型或命名空间名称“Reporting”(是否缺少程序集引用?)
- error CS0234: 命名空间“Microsoft.Office.Interop”中不存在类型或命名空间名称“Word”(是否缺少程序集引用?)
- Linux操作系统下 MONO执行C#程序的方法
- Linux操作系统下 MONO执行C#程序的方法
- Linux操作系统下使用MONO执行C#程序的方法
- Linux操作系统下 MONO执行C#程序的方法
- Linux 下采用开源MONO第一个C#程序
- Linux操作系统下 MONO执行C#程序的方法
- C#程序集Assembly
- 如何编译同时引用两个不同版本的Assembly的C#程序
- Monodevelop打开项目后引用提示“Assembly not available for Mono……” 解决办法
- C#编译时提示未能解析引用的程序(被引用项目编译成功,但引用项目编译时却不能正常引用)
- Linux下编译C++程序遇到错误:undefined reference to '***'
- C#程序集Assembly学习
- Linux gcc编译提示:undefined reference to `sqrtf' collect2: error: ld returned 1 exit status
- linux下编译多线程程序, undefined reference to `pthread_create',undefined reference to `pthread_join'
- 图像处理 - 镜象处理
- 《LoadRunner没有告诉你的》之六——获取有效的性能需求
- 数组中出现次数超过一半的数字
- oracle常用sql语句
- iOS Swift 基础四
- linux下借助mono编译C#提示未引用程序集(error CS0234)missing assembly reference
- uboot下NAND操作指令
- 深入Apache与Nginx的优缺点比较详解
- jQuery诞生记-原理与机制
- 传送门:子线程-->主线程
- Centos安装GateOne问题AttributeError: 'module' object has no attribute 'enable_pretty_logging'解决方案
- 简单的服务器(收发数据)
- SDUT1009Elevator
- RunTime的运行机制简单使用