2026年4月17日 星期五

[研究]NPOI.2.7.6升級結果專案毀了

[研究]NPOI.2.7.6升級結果專案毀了

2025-04-17

環境:Visual Studio 2022 + ASP.NET + WebForm + Web Application + C# + SQL Server 2019 + SQL Server Management Studio (SSMS) 20.2

********************************************************************************

建立一個新的、空的 WebForm 專案

********************************************************************************

安裝 NPOI.2.7.6

WebApplication1 正在安裝:

BouncyCastle.Cryptography.2.6.2 ExtendedNumerics.BigDecimal.2025.1001.2.129 MathNet.Numerics.Signed.5.0.0 NSax.1.0.2 System.Buffers.4.5.1 System.Numerics.Vectors.4.5.0 System.Runtime.CompilerServices.Unsafe.6.0.0 Enums.NET.5.0.0 System.Memory.4.5.5 Microsoft.IO.RecyclableMemoryStream.3.0.1 SixLabors.Fonts.1.0.1 System.Security.Cryptography.Xml.8.0.2 System.Text.Encoding.CodePages.5.0.0 SixLabors.ImageSharp.2.1.11 System.Threading.Tasks.Extensions.4.5.2 SharpZipLib.1.4.2 ZString.2.6.0 NPOI.2.7.6

packages.config


<?xml version="1.0" encoding="utf-8"?> <packages> <package id="BouncyCastle.Cryptography" version="2.6.2" targetFramework="net48" /> <package id="Enums.NET" version="5.0.0" targetFramework="net48" /> <package id="ExtendedNumerics.BigDecimal" version="2025.1001.2.129" targetFramework="net48" /> <package id="MathNet.Numerics.Signed" version="5.0.0" targetFramework="net48" /> <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" targetFramework="net48" /> <package id="Microsoft.IO.RecyclableMemoryStream" version="3.0.1" targetFramework="net48" /> <package id="NPOI" version="2.7.6" targetFramework="net48" /> <package id="NSax" version="1.0.2" targetFramework="net48" /> <package id="SharpZipLib" version="1.4.2" targetFramework="net48" /> <package id="SixLabors.Fonts" version="1.0.1" targetFramework="net48" /> <package id="SixLabors.ImageSharp" version="2.1.11" targetFramework="net48" /> <package id="System.Buffers" version="4.5.1" targetFramework="net48" /> <package id="System.Memory" version="4.5.5" targetFramework="net48" /> <package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" /> <package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" /> <package id="System.Security.Cryptography.Xml" version="8.0.2" targetFramework="net48" /> <package id="System.Text.Encoding.CodePages" version="5.0.0" targetFramework="net48" /> <package id="System.Threading.Tasks.Extensions" version="4.5.2" targetFramework="net48" /> <package id="ZString" version="2.6.0" targetFramework="net48" /> </packages>

********************************************************************************

升級

WebApplication1

更新:

NPOI.2.7.6 -> NPOI.2.8.0

System.Threading.Tasks.Extensions.4.5.2 -> System.Threading.Tasks.Extensions.4.6.3

SixLabors.ImageSharp.2.1.11 -> SixLabors.ImageSharp.3.1.12

System.Text.Encoding.CodePages.5.0.0 -> System.Text.Encoding.CodePages.10.0.6

System.Security.Cryptography.Xml.8.0.2 -> System.Security.Cryptography.Xml.10.0.6

SixLabors.Fonts.1.0.1 -> SixLabors.Fonts.2.1.3

System.Memory.4.5.5 -> System.Memory.4.6.3

System.Runtime.CompilerServices.Unsafe.6.0.0 -> System.Runtime.CompilerServices.Unsafe.6.1.2

System.Numerics.Vectors.4.5.0 -> System.Numerics.Vectors.4.6.1

System.Buffers.4.5.1 -> System.Buffers.4.6.1

Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1 -> Microsoft.CodeDom.Providers.DotNetCompilerPlatform.4.1.0

ExtendedNumerics.BigDecimal.2025.1001.2.129 -> ExtendedNumerics.BigDecimal.3003.0.0.346

正在安裝:

Microsoft.Build.Tasks.Git.8.0.0

Microsoft.SourceLink.Common.8.0.0

Microsoft.SourceLink.GitHub.8.0.0

SkiaSharp.NativeAssets.Linux.NoDependencies.3.119.2

SkiaSharp.NativeAssets.macOS.3.119.2

SkiaSharp.NativeAssets.Win32.3.119.2

SkiaSharp.3.119.2

System.ValueTuple.4.6.2

System.Formats.Asn1.10.0.6

Microsoft.Bcl.Cryptography.10.0.6

********************************************************************************

安裝過成失敗

嚴重性 程式碼 說明 專案 檔案 隱藏項目狀態

錯誤 無法安裝封裝 'SixLabors.Fonts 2.1.3'。您正嘗試將此封裝安裝到以 '.NETFramework,Version=v4.8' 為目標的專案,但該封裝不包含任何與架構相容的組件參考或內容檔。如需詳細資訊,請連絡封裝作者。

********************************************************************************








稍後重新再建新專案測試,升級時先排除 SixLabors.Fonts 2.1.3 不選。

(完)

相關

沒有留言:

張貼留言