尝试找出我需要哪个版本才能让我的project.json提取我需要的库。
现在我正在尝试获取System.Data,这样我就可以使用DataSet了。
试着用卷曲的方式来蛮力:
curl https://api.nuget.org/v3-flatcontainer/system.data/index.json我发现它并没有被找到...
我能拿到
curl https://api.nuget.org/v3-flatcontainer/system.data.sqlcient/index.json可用的文档在哪里?
https://github.com/aspnet/Home/wiki/Dependency-Resolution
我已经很接近了,但还是没有雪茄。
至少我能够编译!
mcs TestExample.cs -r:System.Data.dll但不是用Dnx。
发布于 2016-01-12 15:29:03
我认为System.Data只是一个桌面CLR,GAC-ed程序集。因此,您必须将其添加到project.json中的frameworkAssemblies部分,类似于下面的示例:https://github.com/aspnet/dnx/blob/7ac7929aa575e17b3c271e4a7a0c164418de0395/misc/ProjectToProject/src/P1/project.json#L9-L12
除非找到这个库的替代品,否则您可能无法以CoreCLR为目标。
https://stackoverflow.com/questions/34731197
复制相似问题