【发布时间】:2016-05-25 16:49:35
【问题描述】:
由于两个特定的依赖项(Microsoft. Azure.ServiceBus 和 System.IO.Ports.SerialPort )
积极地说,我打赌这些功能终有一天会登陆 .net core。但与此同时,我发现将我的应用程序从绰号 dnx46 转换为 .netstandard1.3 允许我解决 ServiceBus 依赖项。
解决 System.IO.Ports.SerialPort 然而仍然是一个问题,我不明白如何使这项工作。我希望在 .netstandard1.3 名字对象中导入 net462 框架,可以找到 System.IO.Ports.SerialPort 对象,但它没有。
我错过了什么?
作为参考,有我的 project.json :
{
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-3002702",
"type": "platform"
},
"Microsoft.NETCore.Platforms": "1.0.1-*",
"Microsoft.EntityFrameworkCore": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.Sqlite": "1.0.0-rc2-final",
[...more stuff...]
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
// To be restored when they'll become available on .net core
// "Microsoft.WindowsAzure.ConfigurationManager": "3.2.1",
// "WindowsAzure.ServiceBus": "3.2.1",
}
},
"netstandard1.3": {
"buildOptions": {
"define": [ "INCLUDE_WINDOWSAZURE_FEATURE" ]
},
// Imports of net462 fixes loading of
// - NewtonSoft.Json
// - System.Runtime.Loader for "Microsoft.NETCore.App"
"imports": [
"net462"
],
"dependencies": {
"Microsoft.NETCore.Portable.Compatibility": "1.0.1-rc2-24027"
"Microsoft.WindowsAzure.ConfigurationManager": "3.2.1",
"WindowsAzure.ServiceBus": "3.2.1",
}
}
}
}
【问题讨论】:
标签: c# asp.net-core dnx .net-core .net-core-rc2