From a671810edf209f9e55fc81e4a05f5d2785b4a5a2 Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Fri, 19 Dec 2025 10:41:15 +0100 Subject: [PATCH] C#: Update test options files to point to the new stubs versions. --- .../flowsources/stored/database/dapper/options | 5 +++-- .../ql/test/library-tests/dataflow/library/options | 14 +++++++------- .../ql/test/library-tests/frameworks/Aws/options | 4 ++-- .../test/library-tests/frameworks/JsonNET/options | 2 +- .../library-tests/frameworks/ServiceStack/options | 4 ++-- .../security/dataflow/flowsources/options | 2 +- .../Security Features/CWE-089-2/options | 2 +- .../query-tests/Security Features/CWE-089/options | 11 ++++++----- .../options | 2 +- 9 files changed, 24 insertions(+), 22 deletions(-) diff --git a/csharp/ql/test/library-tests/dataflow/flowsources/stored/database/dapper/options b/csharp/ql/test/library-tests/dataflow/flowsources/stored/database/dapper/options index a075fe79710..a62bf3f5bca 100644 --- a/csharp/ql/test/library-tests/dataflow/flowsources/stored/database/dapper/options +++ b/csharp/ql/test/library-tests/dataflow/flowsources/stored/database/dapper/options @@ -1,5 +1,6 @@ semmle-extractor-options: /nostdlib /noconfig -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/Dapper/2.1.35/Dapper.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/Dapper/2.1.66/Dapper.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/System.Data.SQLite/1.0.119/System.Data.SQLite.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../../resources/stubs/System.Data.SQLite/2.0.2/System.Data.SQLite.csproj semmle-extractor-options: ${testdir}/../../../../../../resources/stubs/System.Windows.cs diff --git a/csharp/ql/test/library-tests/dataflow/library/options b/csharp/ql/test/library-tests/dataflow/library/options index 4567d1b2547..80e3083dfa6 100644 --- a/csharp/ql/test/library-tests/dataflow/library/options +++ b/csharp/ql/test/library-tests/dataflow/library/options @@ -1,12 +1,12 @@ semmle-extractor-options: /nostdlib /noconfig -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Newtonsoft.Json/13.0.3/Newtonsoft.Json.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Newtonsoft.Json/13.0.4/Newtonsoft.Json.csproj semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.35/Dapper.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack/8.5.2/ServiceStack.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack.OrmLite.SqlServer/8.5.2/ServiceStack.OrmLite.SqlServer.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.66/Dapper.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack/10.0.4/ServiceStack.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/ServiceStack.OrmLite.SqlServer/10.0.4/ServiceStack.OrmLite.SqlServer.csproj semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Drawing.Common/9.0.1/System.Drawing.Common.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Windows.Extensions/9.0.1/System.Windows.Extensions.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Security.Permissions/9.0.1/System.Security.Permissions.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Drawing.Common/10.0.1/System.Drawing.Common.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Windows.Extensions/10.0.1/System.Windows.Extensions.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Security.Permissions/10.0.1/System.Security.Permissions.csproj semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs semmle-extractor-options: ${testdir}/../../../resources/stubs/EntityFrameworkCore.cs diff --git a/csharp/ql/test/library-tests/frameworks/Aws/options b/csharp/ql/test/library-tests/frameworks/Aws/options index fff7a0321cd..9c97aaaaec7 100644 --- a/csharp/ql/test/library-tests/frameworks/Aws/options +++ b/csharp/ql/test/library-tests/frameworks/Aws/options @@ -1,3 +1,3 @@ semmle-extractor-options: /nostdlib /noconfig -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.Core/2.5.0/Amazon.Lambda.Core.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.1/Amazon.Lambda.APIGatewayEvents.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.Core/2.8.0/Amazon.Lambda.Core.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.3/Amazon.Lambda.APIGatewayEvents.csproj diff --git a/csharp/ql/test/library-tests/frameworks/JsonNET/options b/csharp/ql/test/library-tests/frameworks/JsonNET/options index c1876368cd3..baea6d14732 100644 --- a/csharp/ql/test/library-tests/frameworks/JsonNET/options +++ b/csharp/ql/test/library-tests/frameworks/JsonNET/options @@ -1 +1 @@ -semmle-extractor-options: /nostdlib /noconfig --load-sources-from-project:../../../resources/stubs/Newtonsoft.Json/13.0.3/Newtonsoft.Json.csproj +semmle-extractor-options: /nostdlib /noconfig --load-sources-from-project:../../../resources/stubs/Newtonsoft.Json/13.0.4/Newtonsoft.Json.csproj diff --git a/csharp/ql/test/library-tests/frameworks/ServiceStack/options b/csharp/ql/test/library-tests/frameworks/ServiceStack/options index 44ebf958932..53fa2cb023f 100644 --- a/csharp/ql/test/library-tests/frameworks/ServiceStack/options +++ b/csharp/ql/test/library-tests/frameworks/ServiceStack/options @@ -1,3 +1,3 @@ semmle-extractor-options: /nostdlib /noconfig -semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack/8.5.2/ServiceStack.csproj -semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack.OrmLite.SqlServer/8.5.2/ServiceStack.OrmLite.SqlServer.csproj +semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack/10.0.4/ServiceStack.csproj +semmle-extractor-options: --load-sources-from-project:../../../resources/stubs/ServiceStack.OrmLite.SqlServer/10.0.4/ServiceStack.OrmLite.SqlServer.csproj diff --git a/csharp/ql/test/library-tests/security/dataflow/flowsources/options b/csharp/ql/test/library-tests/security/dataflow/flowsources/options index f6b3429939d..6535096343f 100644 --- a/csharp/ql/test/library-tests/security/dataflow/flowsources/options +++ b/csharp/ql/test/library-tests/security/dataflow/flowsources/options @@ -1,4 +1,4 @@ semmle-extractor-options: /nostdlib /noconfig semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.OleDb/9.0.1/System.Data.OleDb.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/System.Data.OleDb/10.0.1/System.Data.OleDb.csproj semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj diff --git a/csharp/ql/test/query-tests/Security Features/CWE-089-2/options b/csharp/ql/test/query-tests/Security Features/CWE-089-2/options index 5601356ee48..53003956669 100644 --- a/csharp/ql/test/query-tests/Security Features/CWE-089-2/options +++ b/csharp/ql/test/query-tests/Security Features/CWE-089-2/options @@ -1,4 +1,4 @@ semmle-extractor-options: /nostdlib /noconfig -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Microsoft.Data.SqlClient/6.0.2/Microsoft.Data.SqlClient.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Microsoft.Data.SqlClient/6.1.3/Microsoft.Data.SqlClient.csproj semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Windows.cs semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj diff --git a/csharp/ql/test/query-tests/Security Features/CWE-089/options b/csharp/ql/test/query-tests/Security Features/CWE-089/options index 7cdc544e958..8ac012aabdd 100644 --- a/csharp/ql/test/query-tests/Security Features/CWE-089/options +++ b/csharp/ql/test/query-tests/Security Features/CWE-089/options @@ -1,7 +1,8 @@ semmle-extractor-options: /nostdlib /noconfig -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.35/Dapper.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SQLite/1.0.119/System.Data.SQLite.csproj -semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Windows.cs semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.AspNetCore.App/Microsoft.AspNetCore.App.csproj -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/NHibernate/5.5.2/NHibernate.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/Dapper/2.1.66/Dapper.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/EntityFramework/6.5.1/EntityFramework.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/NHibernate/5.6.0/NHibernate.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SqlClient/4.9.0/System.Data.SqlClient.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/System.Data.SQLite/2.0.2/System.Data.SQLite.csproj +semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Windows.cs diff --git a/csharp/ql/test/query-tests/Security Features/CWE-502/UnsafeDeserializationUntrustedInputNewtonsoftJson/options b/csharp/ql/test/query-tests/Security Features/CWE-502/UnsafeDeserializationUntrustedInputNewtonsoftJson/options index 750b4e67189..d9116630909 100644 --- a/csharp/ql/test/query-tests/Security Features/CWE-502/UnsafeDeserializationUntrustedInputNewtonsoftJson/options +++ b/csharp/ql/test/query-tests/Security Features/CWE-502/UnsafeDeserializationUntrustedInputNewtonsoftJson/options @@ -1,3 +1,3 @@ semmle-extractor-options: /nostdlib /noconfig -semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/Newtonsoft.Json/13.0.3/Newtonsoft.Json.csproj +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/Newtonsoft.Json/13.0.4/Newtonsoft.Json.csproj semmle-extractor-options: ${testdir}/../../../../resources/stubs/System.Web.cs