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 ページの 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 Standard / 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
このページは役に立ちましたか?