From c710e8af4224a3d0d2975ba5c2b09f0398ee2383 Mon Sep 17 00:00:00 2001 From: Jackson Schuster <36744439+jtschuster@users.noreply.github.com> Date: Mon, 15 Aug 2022 12:07:47 -0700 Subject: Add IL Verification to tests (#2960) Adds an ILVerifier to check that the IL produced by the linker is valid. Unsafe C# produced unverifiable code, so we skip verification when we pass that flag to the compiler. Also, there are a few warnings that are produced by valid C# with new features like static abstract interface methods and ref fields and ref returns. In the future, it may be nice to add better error messages with the type, method name, and IL offset that produced the error, and perhaps an [ExpectedILVerifyError] attribute instead of filtering all of a type of error, but those are non-trivial to implement and don't occur in many tests (<10), so I haven't done that yet. --- eng/Versions.props | 1 + 1 file changed, 1 insertion(+) (limited to 'eng/Versions.props') diff --git a/eng/Versions.props b/eng/Versions.props index ea29c2eae..cef1af03c 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -25,6 +25,7 @@ $(MicrosoftCodeAnalysisVersion) 1.0.1-beta1.* 3.3.2 + 7.0.0-preview.7.22375.6 -- cgit v1.2.3