Doconut 업데이트 방법

버전 1.0.5.2 이하에서 업데이트하려면 다음 단계를 따르세요.

.NET 프레임워크 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 페이지에서 Register 업데이트

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"/>

네임스페이스 업데이트

Doconut 24.3.0이 네임스페이스를 변경했습니다. 새로운 DLL을 추가하세요: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, Doconut.Clouds.dll.

새로운 Using:

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 표준 / Core

네임스페이스 업데이트

Doconut 24.3.0이 네임스페이스를 변경했습니다. 새로운 DLL을 추가하세요: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, Doconut.Clouds.dll.

새로운 Using:

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 이상

네임스페이스 업데이트

Doconut 24.3.0이 네임스페이스를 변경했습니다. 새로운 DLL을 추가하세요: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, Doconut.Clouds.dll.

새로운 Using:

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

이 페이지가 도움이 되었나요?