首页新闻找找看学习计划

corefx System.Net.Sockets 源码中无法添加打印 ManagedThreadId 代码的问题

0
悬赏园豆:30 [待解决问题]

在 .net core corefx 源码的 System.Net.Sockets 解决方案中添加下面的 C# 代码

Console.WriteLine($"Current thread id is {System.Threading.Thread.CurrentThread.ManagedThreadId}");

用下面的命令 build

../../build-managed.cmd -OSGroup=Linux -ConfigurationGroup=Release

出现下面的错误:

error CS1069: The type name 'Thread' could not be found in the namespace 'System.Threading'. This type has been forwarded to assembly 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:40812
提问于:2019-05-04 08:07
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册