You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/11/17 15:47:27 UTC

[lucenenet] branch master updated: TestTargetFramework.props: Disabled EoL warnings in test projects so we don't get false flags for testing with net5.0. We use net5.0 to test the netstandard2.1 target framework.

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e3eb6358 TestTargetFramework.props: Disabled EoL warnings in test projects so we don't get false flags for testing with net5.0. We use net5.0 to test the netstandard2.1 target framework.
0e3eb6358 is described below

commit 0e3eb63581af365535c537852ab0687167429aed
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Thu Nov 17 22:44:33 2022 +0700

    TestTargetFramework.props: Disabled EoL warnings in test projects so we don't get false flags for testing with net5.0. We use net5.0 to test the netstandard2.1 target framework.
---
 TestTargetFramework.props | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/TestTargetFramework.props b/TestTargetFramework.props
index 7f59aafb5..f6f485196 100644
--- a/TestTargetFramework.props
+++ b/TestTargetFramework.props
@@ -53,6 +53,9 @@
   </PropertyGroup>
 
   <PropertyGroup Label="Warnings to be Disabled in Test Projects">
+    <!-- We purposely test on EoL frameworks for testing netstandard2.1, but we want to keep this warning in production code. -->
+    <CheckEolTargetFramework>false</CheckEolTargetFramework>
+    
     <NoWarn Label="Nested types should not be visible">$(NoWarn);CA1034</NoWarn>
     <NoWarn Label="Use Literals Where Appropriate">$(NoWarn);CA1802</NoWarn>
     <NoWarn Label="Add readonly modifier">$(NoWarn);CA1822</NoWarn>