问题描述
我正在尝试使用以下库从.Net Core应用程序中的照片中提取元数据:
I am attempting to pull metadata from photos in a .Net Core App by using this library:
https://www.codeproject.com/Articles/27242/ExifTagCollection-An-EXIF-metadata-extraction-libr
但是在实现ExifTagCollection类时,我得到了标题中列出的错误.
However while implementing the ExifTagCollection class I am getting the Error listed in the title.
我已经成功引用了System.Drawing,但是它无法识别其绘图扩展名.任何帮助将是巨大的.也欢迎其他图书馆提出建议以实现我的目标.谢谢
I have successfully referenced System.Drawing but it is not recognizing its drawing extension. Any help would be great. Also open to suggestions for other libraries to accomplish my goal. Thx
推荐答案
如果您查看微软,您将看到:
If you take a look at the site of microsoft you will see:
" System.Drawing.Imaging命名空间中的类不支持在Windows或ASP.NET服务中使用.尝试从这些应用程序类型之一中使用这些类可能会产生意外问题,例如减少服务性能和运行时异常."
您正在使用ASP.net创建一个Web应用程序,因此您的项目不支持此类
You are creating a web application with ASP.net so this class isn't supported for your project
这篇关于使用System.Drawing.Imaging;系统中不存在映像.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!