仅限FSharp.Data.DesignTime .NET 4.5吗? [英] Is FSharp.Data.DesignTime .NET 4.5 only?
问题描述
我在.NET 4.0项目中使用FSharp.Data.1.1.10,当我使用Nuget添加FSharp.Data时,它将创建一个 packages \ FSharp.Data.1.1.10 \ lib \ net40 目录,在该目录中放置 FSharp.Data.dll 和 FSharp.Data.DesignTime.dll .根据Telerik JustDecompile的说法, FSharp.Data.dll 是.NET 4.0 dll,但是 FSharp.Data.DesignTime.dll 是.NET 4.5 dll,即使它位于net40子目录.
I'm using FSharp.Data.1.1.10 in a .NET 4.0 project, and when I add FSharp.Data with Nuget, it creates a packages\FSharp.Data.1.1.10\lib\net40 directory where it puts FSharp.Data.dll and FSharp.Data.DesignTime.dll. According to Telerik JustDecompile, FSharp.Data.dll is a .NET 4.0 dll, but FSharp.Data.DesignTime.dll is a .NET 4.5 dll even though it resides in the net40 subdirectory.
那么,仅是FSharp.Data.DesignTime .NET 4.5,还是一个bug?
So, is FSharp.Data.DesignTime .NET 4.5 only, or is this a bug?
推荐答案
是的,FSharp.Data.DesignTime是.NET 4.5,但这并不意味着您的项目也必须是.NET 4.5,这只是设计时间组件,甚至不应该引用它,只有FSharp.Data.dll
Yes, FSharp.Data.DesignTime is .NET 4.5, but that doesn't mean your projects have to be .NET 4.5 also, it's just a design time component, and you shouldn't even reference it, only FSharp.Data.dll
在FSharp.Data 1.1.x中,当引用nuget程序包(在现已修复的2.x版中)时,错误地添加了DesignTime dll
In FSharp.Data 1.1.x the DesignTime dll was being added by mistake when referencing the nuget package, in 2.x that is now fixed
这篇关于仅限FSharp.Data.DesignTime .NET 4.5吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!