weixin_39870664
weixin_39870664
2021-01-11 11:39

Using new C# 9.0 language feature causes the performance CI tests to fail

When trying to use the new C# 9.0 'record' usage in tests the dotnet-runtime-perf leg failed with: Serialization\ConstructorTests\ConstructorTests.Exceptions.cs(156,37): error CS0518: (NETCORE_ENGINEERING_TELEMETRY=Build) Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

The test csproj did need to add <LangVersion>preview</LangVersion>, which seemed to work fine execpt for the performance leg:

https://github.com/dotnet/runtime/pull/38959#issuecomment-656150689

该提问来源于开源项目:dotnet/runtime

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

18条回答

为你推荐

换一换