gpt4 book ai didi

c# - .NET 3.5上的FileHelpers无法编译

转载 作者:行者123 更新时间:2023-12-02 10:54:20 24 4
gpt4 key购买 nike

我试图在我的VS 2012项目中针对 .NET Framework v3.5 使用 FileHelpers 库。
我从NuGet安装了它,没有任何警告/错误。但是,当我尝试编译项目时,在与Framework版本相关的许多FileHelpers类上都遇到了这些错误:

The referenced assembly "FileHelpers, Version=3.1.5.0, Culture=neutral, PublicKeyToken=3e0c08d59cc3d657, processorArchitecture=MSIL" could not be resolved because it was compiled on framework ".NETFramework,Version=v4.0". which is not in the currently targeted framework ".NETFramework,Version=v3.5"

我不能在针对.NET Framework v3.5的项目中使用FileHelpers吗?

filehelpers.net:

Wide framework support: You can use the library in .NET 2.0, 3.0, 4.0, 4.5, 4.6 and Mono!

最佳答案

似乎有一个 Unresolved 问题打开了。你可以看到它here

声明了此临时修复程序:

However the version in Lib/net20 (in nuget package) references the .Net Framework v2.0: It should be possible to use that version in your .Net 3.5 project.

关于c# - .NET 3.5上的FileHelpers无法编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36288231/

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