' ImageFormat'在命名空间中是模棱两可的。

发布于 2025-01-31 20:07:08 字数 647 浏览 3 评论 0原文

我刚刚升级了一个ASP.NET系统中的Aspose软件包,并偶然发现了一个怪异的问题 - 几个模棱两可的参考样式错误,本能地,我试图解决完全资格参考的问题...但是它仍然没有似乎已经修复了它。

一个实例是此特定的如果块:

If converter.HasNextImage() Then
    converter.GetNextImage(Path.GetDirectoryName(fileToConvert) & "\" & Path.GetFileNameWithoutExtension(fileToConvert) & "_small" & suffix, System.Drawing.Imaging.ImageFormat.Jpeg, newWidth, newHeight, 75)
End If

其中ImageFormat据称是模棱两可的。我怀疑这与aspose.imaging dll有关,但我不确定如何解决。

除了汇总aspose.imaging dll外,还有其他人得到的解决方案吗?

更新:系统地删除可疑的DLL后,似乎是aspose.drawing dll,这是问题

I've just upgraded the Aspose packages within one of our ASP.Net systems and stumbled across a weird issue - a couple of ambiguous reference style errors, instinctively I attempted the fix of fully qualifying the reference...but it still doesn't seem to have fixed it.

One instance is this particular if block:

If converter.HasNextImage() Then
    converter.GetNextImage(Path.GetDirectoryName(fileToConvert) & "\" & Path.GetFileNameWithoutExtension(fileToConvert) & "_small" & suffix, System.Drawing.Imaging.ImageFormat.Jpeg, newWidth, newHeight, 75)
End If

Where ImageFormat is supposedly ambiguous. I suspect it's something to do with the Aspose.Imaging DLL, but I'm not sure how to resolve it.

Has anyone else got a solution other than just binning the Aspose.Imaging DLL?

UPDATE: After systematically removing the suspected DLLs it seems to be the Aspose.Drawing DLL that is the problem

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文