在 .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.
请问如何解决?