我正在尝试在fsi中启动.net核心应用程序,但我一直收到此错误。我尝试了#r "{the right System.Runtime}"
,但仍然失败。有什么想法吗?
> System.TypeLoadException: Could not load type 'System.Threading.CancellationToken' from assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at Microsoft.Extensions.Configuration.ConfigurationReloadToken.RegisterChangeCallback(Action`1 callback, Object state)
at Microsoft.Extensions.Primitives.ChangeToken.ChangeTokenRegistration`1.RegisterChangeTokenCallback(IChangeToken token)
at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Microsoft.Extensions.Hosting.HostBuilder.BuildHostConfiguration()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at FSI_0002.Fsi_util.FSU.start_fsi@116.Invoke(Unit unitVar) in C:\Test\Scripts\util.fsx:line 133