gpt4 book ai didi

.net - .NET 3.5.1 中的 DocumentFormat.OpenXml 2.5 给出警告

转载 作者:行者123 更新时间:2023-12-04 23:23:19 25 4
gpt4 key购买 nike

我决定使用 .NET 3.5.1但是当我添加 DocumentFormat.OpenXml 2.5通过带有 Install-Package DocumentFormat.OpenXml 的 NuGet 包控制台,我收到了很多警告:

1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3258: The primary reference "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=123, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the .NET Framework assembly "System.Data.SqlXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=123" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.

1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3258: The primary reference "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=123, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the .NET Framework assembly "System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=123" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.

1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=123, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=123" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5". To resolve this problem, either remove the reference "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=123, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".

1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3258: The primary reference "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=123, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the .NET Framework assembly "Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=123" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.

1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=123, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=123" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5". To resolve this problem, either remove the reference "DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=123, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=123".



好像 DocumentFormat.OpenXml 2.5需要或正在使用 .Net 4 .

我应该担心这些警告吗[并坚持 .net 4.5我在哪里没有收到这些警告]?

我想避免 .net 4.5因为他们需要安装管理员权限。

最佳答案

来自 Open XML SDK 2.5 for Microsoft Office下载页面,SDK需要 Microsoft .NET Framework 4.0 版 .

如果要使用 Microsoft .NET Framework 3.5 SP1,可以使用 Open XML SDK 2.0只要。

关于.net - .NET 3.5.1 中的 DocumentFormat.OpenXml 2.5 给出警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18329625/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com