【发布时间】:2016-09-13 10:37:12
【问题描述】:
我想使用带有目标的简单(仅 POCO,没有其他依赖项)PCL
- Xamarin.Android
- 通用 Windows 10
- ASP.NET Core 1.0
在 ASP.NET Core 1.0 RC2 项目中(都在同一个解决方案中)。我已将此导入添加到我的 project.json:
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"dnxcore50",
"portable-net451+win8"
],
"dependencies": {
"PCL.Library": {
"target": "project"
}
}
}
}
我没有收到任何错误(编译或其他),PCL.Library 项目出现在参考文献中(没有警告标志或任何东西)。但我不能在我的 ASP.NET Core 1.0 RC2 项目中使用它,因为 using 语句无法解析,就好像根本没有引用 PCL。
我必须如何配置我的 PCL 项目和我的 ASP.NET Core 项目才能使用 PCL?
更新:它也不适用于 RTM 版本。开发团队没有对 GitHub 问题做出任何回应,这让我觉得这是一个根本问题,让这一切变得不可能。
【问题讨论】:
标签: xamarin.android asp.net-core portable-class-library windows-10-universal asp.net-core-1.0