【问题标题】:How to use latest dot net core in Universal Windows Class Library?如何在通用 Windows 类库中使用最新的点网核心?
【发布时间】:2016-04-01 15:05:54
【问题描述】:

我想在新的通用 Windows 类库中使用最新的 .NET Core。

但是,在 VS2015 中创建新库时,System.Net.Sockets.Socket API 似乎没有更新。特别是我想要这个提交:https://github.com/dotnet/corefx/pull/4079/files

我的project.json 看起来像:

{
  "dependencies": {
    "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
  },
  "frameworks": {
    "uap10.0": {}
  },
  "runtimes": {
    "win10-arm": {},
    "win10-arm-aot": {},
    "win10-x86": {},
    "win10-x86-aot": {},
    "win10-x64": {},
    "win10-x64-aot": {}
  }
}

【问题讨论】:

    标签: c# visual-studio-2015 win-universal-app .net-core


    【解决方案1】:

    您可以尝试使用他们的夜间提要升级该软件包:https://dotnet.myget.org/gallery/dotnet-core

    【讨论】:

    • 谢谢,我的下一个问题是怎么做?我尝试将该提要添加到 nuget,然后选择了最新的预发行版“Microsoft.NETCore.UniveralWindowsPlatform”并单击了 [Update],但出现如下错误:“NotFound api.nuget.org/v3-flatcontainer/…
    • 试试 v2 提要。 v3 对我来说只是麻烦。
    • 好的,我进一步使用了这个提要:myget.org/F/dotnet-core,它给了我“与 UWP 不兼容的包”错误,现在 corefx 存储库上有一个问题跟踪这个问题:github.com/dotnet/coreclr/issues/3520
    猜你喜欢
    • 1970-01-01
    • 2021-10-10
    • 2017-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-16
    • 2022-12-10
    • 2018-03-08
    相关资源
    最近更新 更多