نحوه به‌روزرسانی Doconut

این مراحل را برای به‌روزرسانی از نسخه 1.0.5.2 یا پایین‌تر دنبال کنید.

.NET Framework 4.7

پیکربندی Web.config

نمایشگر نیاز دارد که HttpHandler از طریق فایل web.config ثبت شود. بسته به نسخه IIS شما می‌توانید این کار را با استفاده از بخش زیر که در web.config تعریف شده است، انجام دهید.

زیر IIS 7:

xml
<httpHandlers>
  <add verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</httpHandlers>

IIS 7 و بالاتر:

xml
<handlers>
  <add name="DocImage" verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</handlers>

به‌روزرسانی ثبت در صفحات ASPX

ثبت اسمبلی را در صفحات ASPX خود تغییر دهید.

قدیم:

aspx
<%@ Register Assembly="DocumentViewer" Namespace="DotnetDaddy.DocumentViewer" TagPrefix="asp" %>

جدید:

aspx
<%@ Register Assembly="Doconut" Namespace="Doconut" TagPrefix="asp" %>

به‌روزرسانی برچسب کنترل

برچسب کنترل را از DocViewer به Viewer به‌روزرسانی کنید.

قدیم:

aspx
<asp:DocViewer ID="ctlDoc" runat="server"/>

جدید:

aspx
<asp:Viewer ID="ctlDoc" runat="server"/>

به‌روزرسانی فضاهای نام

در نسخه 24.3.0 Doconut فضاهای نام را تغییر نام داد. DLLهای جدید را اضافه کنید: Doconut.dll، Doconut.Formats.dll، Doconut.Configs.dll و Doconut.Clouds.dll.

استفاده‌های جدید:

csharp
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;

راه‌اندازی:

csharp
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

به‌روزرسانی فضاهای نام

در نسخه 24.3.0 Doconut فضاهای نام را تغییر نام داد. DLLهای جدید را اضافه کنید: Doconut.dll، Doconut.Formats.dll، Doconut.Configs.dll و Doconut.Clouds.dll.

استفاده‌های جدید:

csharp
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;

راه‌اندازی:

csharp
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 or higher

به‌روزرسانی فضاهای نام

در نسخه 24.3.0 Doconut فضاهای نام را تغییر نام داد. DLLهای جدید را اضافه کنید: Doconut.dll، Doconut.Formats.dll، Doconut.Configs.dll و Doconut.Clouds.dll.

استفاده‌های جدید:

csharp
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;

راه‌اندازی:

csharp
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

آیا این صفحه مفید بود؟