كيفية تحديث Doconut

اتبع هذه الخطوات لتحديث من الإصدار 1.0.5.2 أو أقل.

إطار .NET 4.7

تكوين Web.config

يتطلب العارض HttpHandler أن يتم تسجيله عبر ملف web.config. اعتمادًا على إصدار IIS الخاص بك، يمكن القيام بذلك باستخدام القسم التالي المحدد في web.config.

Below IIS 7
<httpHandlers>
  <add verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</httpHandlers>
IIS 7 and above
<handlers>
  <add name="DocImage" verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</handlers>

تحديث التسجيل في صفحات ASPX

غيّر تسجيل التجميع في صفحات ASPX الخاصة بك.

Old
<%@ Register Assembly="DocumentViewer" Namespace="DotnetDaddy.DocumentViewer" TagPrefix="asp" %>
New
<%@ Register Assembly="Doconut" Namespace="Doconut" TagPrefix="asp" %>

تحديث علامة التحكم

قم بتحديث علامة التحكم من DocViewer إلى Viewer.

Old
<asp:DocViewer ID="ctlDoc" runat="server"/>
New
<asp:Viewer ID="ctlDoc" runat="server"/>

تحديث مساحات الأسماء

قامت Doconut 24.3.0 بإعادة تسمية مساحات الأسماء. أضف ملفات DLL الجديدة: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, و Doconut.Clouds.dll.

New Usings
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;
Initialization
var viewer = new Viewer();

اعتمادات الحزمة

  • Newtonsoft.Json 13.0.3
  • System.Text.Encoding.CodePages 6.0.0
  • System.Text.Json 6.0.0

معيار .NET / Core

تحديث مساحات الأسماء

قامت Doconut 24.3.0 بإعادة تسمية مساحات الأسماء. أضف ملفات DLL الجديدة: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, و Doconut.Clouds.dll.

New Usings
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;
Initialization
var viewer = new Viewer();

اعتمادات الحزمة

  • Microsoft.Extensions.Caching.Abstractions 3.1.10
  • SkiaSharp 2.88.6
  • Newtonsoft.Json 13.0.3
  • System.Drawing.Common 6.0.0
  • System.Text.Json 6.0.0
  • System.Text.Encoding.CodePages 7.0.0

.NET 6 أو أعلى

تحديث مساحات الأسماء

قامت Doconut 24.3.0 بإعادة تسمية مساحات الأسماء. أضف ملفات DLL الجديدة: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, و Doconut.Clouds.dll.

New Usings
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;
Initialization
var viewer = new Viewer();

اعتمادات الحزمة

  • Microsoft.Extensions.Caching.Abstractions 3.1.10
  • Newtonsoft.Json 13.0.3
  • SkiaSharp 2.88.6
  • System.Drawing.Common 7.0.0
  • System.Text.Encoding.CodePages 7.0.0