Jak aktualizovat Doconut

Postupujte podle těchto kroků k aktualizaci z verze 1.0.5.2 nebo nižší.

.NET Framework 4.7

Konfigurace Web.config

Viewer vyžaduje, aby byl HttpHandler registrován prostřednictvím souboru web.config. V závislosti na verzi IIS to lze provést pomocí následující sekce definované v 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>

Aktualizovat registraci v ASPX stránkách

Změňte registraci sestavy ve vašich ASPX stránkách.

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

Aktualizovat značku ovládacího prvku

Aktualizujte značku ovládacího prvku z DocViewer na Viewer.

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

Aktualizovat jmenné prostory

Doconut 24.3.0 přejmenoval jmenné prostory. Přidejte nové DLL soubory: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll a Doconut.Clouds.dll.

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

Závislosti balíčků

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

.NET Standard / Core

Aktualizovat jmenné prostory

Doconut 24.3.0 přejmenoval jmenné prostory. Přidejte nové DLL soubory: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll a Doconut.Clouds.dll.

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

Závislosti balíčků

  • 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

Aktualizovat jmenné prostory

Doconut 24.3.0 přejmenoval jmenné prostory. Přidejte nové DLL soubory: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll a Doconut.Clouds.dll.

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

Závislosti balíčků

  • 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