ImageProcessor.Web on .Net Core 2.0 project

流过昼夜 提交于 2019-12-25 19:35:51

问题


Can i use the imageprocessor.Web on .net Core 2.0 project even if the it's restored, targeting .NETFramework, Version=v4.6.1?

Update

On a fresh .Net Core 2.0 project the following Packages where installed: imageprocessor imageprocessor.web imageprocessor.web.config

Normally on a Asp.net Mvc Template (framework=v4.6.1) by creating simple markup for images such as <img alt="Picture for category Electronics" src="http://localhost:15536/images/thumbs/0000005_electronics_600.jpeg?crop=0.5,0,0,0.1&amp;cropmode=percentage" title="Show products in category Electronics"> in any view would crop an image base on the querystrings provided in the url of the image, as specified in the documentation: http://imageprocessor.org/imageprocessor-web/imageprocessingmodule/crop/ however

A: None of the query strings provided take any affect whatsoever B: When attempted to also add the configuration file by installing the nuget package ImageProcessor.Web.Config the App.Config isn't edited and am left with nothing to configure

All I need is some simple image processing done on images as described by the imageprocessor.web documentation here: http://imageprocessor.org/imageprocessor-web/


回答1:


No. You cannot.

Imageprocessor.Web is built against .NET 4.5.2 which is a completely different target framework specific to Windows desktop. You need something that targets either a netstandard or .NET Core 2.0.



来源:https://stackoverflow.com/questions/50132759/imageprocessor-web-on-net-core-2-0-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!