Skip to content

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

@steveharter

Description

@steveharter

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:

#38959 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions