Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将.net标准类库导入.net framework项目?_.net_.net Core - Fatal编程技术网

如何将.net标准类库导入.net framework项目?

如何将.net标准类库导入.net framework项目?,.net,.net-core,.net,.net Core,我已经创建了一个针对.netstandard1.4的类库,并将其打包为一个nuget包。到目前为止还不错,对吧 我可以将它导入我的dotnet core 1.1项目“快乐时光” 然而,当我在VS 2017中尝试将其导入我的dotnet framework 4.5.2项目时,我得到了一个错误,如下所示: Could not install package 'YourClassLibrary 1.0.0'. You are trying to install this package into a

我已经创建了一个针对.netstandard1.4的类库,并将其打包为一个nuget包。到目前为止还不错,对吧

我可以将它导入我的dotnet core 1.1项目“快乐时光”

然而,当我在VS 2017中尝试将其导入我的dotnet framework 4.5.2项目时,我得到了一个错误,如下所示:

Could not install package 'YourClassLibrary 1.0.0'. You are trying to
install this package into a project that targets 
'.NETFramework,Version=v4.5.2', but the package does not contain any 
assembly references or content files that are compatible with that 
framework. For more information, contact the package author.
我联系了包裹的作者,但那是我,所以那家伙帮不了我。我认为这是一个允许的手术。我可能做错了什么


更新:根据此页面()我的dotnet标准1.4库应适用于dotnet framework 4.6.1。

将您的更新作为答案发布并接受它,或者接受其他指出错误的答案。嗯。。。我觉得我的傅很弱。更新不是答案,而是另一个数据点。我没有看到另一个答案说什么不对。。。我当然很想看到!您已经知道,.NET标准1.4仅受.NET Framework 4.6.1及更高版本的支持,它不适用于.NET Framework 4.5.2。那么,为什么要费心问答案是什么时候显而易见。把你的更新作为一个答案发布并接受它,或者接受另一个表明问题所在的答案。嗯。。。我觉得我的傅很弱。更新不是答案,而是另一个数据点。我没有看到另一个答案说什么不对。。。我当然很想看到!您已经知道,.NET标准1.4仅受.NET Framework 4.6.1及更高版本的支持,它不适用于.NET Framework 4.5.2。那么,当答案显而易见时,为什么还要费心去问呢。