איך לעדכן את Doconut

עקוב אחר השלבים הבאים לעדכון מגרסה 1.0.5.2 או נמוכה יותר.

.NET Framework 4.7

קונפיגורציית Web.config

ה‑viewer דורש רישום 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" %>

עדכון תג ה-Control

עדכן את תג ה‑control מ‑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();

Package Dependencies

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

.NET Standard / 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();

Package Dependencies

  • 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();

Package Dependencies

  • 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