From 03abc88fd0cb0b489af3dc9f6c69e8b83538a3aa Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 21 Nov 2022 17:26:32 +0100 Subject: [PATCH] dotnet: remove netstandard2.0 (unsupported) ortools\sat\csharp\CpSolver.cs(214,25): error CS1061: 'Queue' does not contain a definition for 'TryDequeue' and no accessible extension method 'TryDequeue' accepting a first argument of type 'Queue' could be found --- CMakeLists.txt | 3 --- cmake/dotnet.cmake | 3 --- 2 files changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56441a21f2..2428e94434 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,9 +268,6 @@ if(BUILD_DOTNET) option(USE_DOTNET_48 "Use .Net Framework 4.8 support" OFF) message(STATUS ".Net: Use .Net Framework 4.8 support: ${USE_DOTNET_48}") - option(USE_DOTNET_STD_20 "Use .Net Standard 2.0 support" OFF) - message(STATUS ".Net: Use .Net Framework 2.0 support: ${USE_DOTNET_STD_20}") - option(USE_DOTNET_STD_21 "Use .Net Standard 2.1 support" OFF) message(STATUS ".Net: Use .Net Framework 2.1 support: ${USE_DOTNET_STD_21}") diff --git a/cmake/dotnet.cmake b/cmake/dotnet.cmake index 99ebb33f71..ad45fe925a 100644 --- a/cmake/dotnet.cmake +++ b/cmake/dotnet.cmake @@ -74,9 +74,6 @@ message(STATUS ".Net runtime project build path: ${DOTNET_NATIVE_PROJECT_DIR}") if(USE_DOTNET_48) list(APPEND TFM "net48") endif() -if(USE_DOTNET_STD_20) - list(APPEND TFM "netstandard2.0") -endif() if(USE_DOTNET_STD_21) list(APPEND TFM "netstandard2.1") endif()