איך לעדכן את Doconut
עקבו אחרי הצעדים האלה כדי לעדכן מגרסה 1.0.5.2 ומטה.
.NET Framework 4.7
תצורת Web.config
הצופה דורש רישום HttpHandler באמצעות קובץ web.config. בהתאם לגרסת IIS שלך ניתן לבצע זאת באמצעות הקטע הבא המוגדר ב‑web.config.
מתחת ל‑IIS 7:
<httpHandlers>
<add verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</httpHandlers>IIS 7 ומעלה:
<handlers>
<add name="DocImage" verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</handlers>עדכון רישום בדפי ASPX
שנה את רישום ההרכבה בדפי ASPX שלך.
ישן:
<%@ Register Assembly="DocumentViewer" Namespace="DotnetDaddy.DocumentViewer" TagPrefix="asp" %>חדש:
<%@ Register Assembly="Doconut" Namespace="Doconut" TagPrefix="asp" %>עדכון תג שליטה
עדכן את תג השליטה מ‑DocViewer ל‑Viewer.
ישן:
<asp:DocViewer ID="ctlDoc" runat="server"/>חדש:
<asp:Viewer ID="ctlDoc" runat="server"/>עדכון מרחבי שמות
Doconut 24.3.0 שינה את מרחבי השמות. הוסף את קבצי ה‑DLL החדשים: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, ו‑Doconut.Clouds.dll.
Using חדשים:
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;אתחול:
var viewer = new Viewer();תלויות חבילות
- 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.
Using חדשים:
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;אתחול:
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.
Using חדשים:
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;אתחול:
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
האם דף זה היה מועיל?