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

ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new 423296cc503 IGNITE-27442 .NET: Disable packing for test projects 
(#7291)
423296cc503 is described below

commit 423296cc50316519a5e526bda3cc984f51890ec1
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Tue Dec 23 15:34:22 2025 +0200

    IGNITE-27442 .NET: Disable packing for test projects (#7291)
---
 .../Apache.Ignite.Tests.Aot.csproj                 |  1 +
 .../Apache.Ignite.Tests.Common.csproj              |  3 ++-
 .../Apache.Ignite.Tests/ProjectFilesTests.cs       | 22 ++++++++++++++++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Apache.Ignite.Tests.Aot.csproj
 
b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Apache.Ignite.Tests.Aot.csproj
index 67a2cbe35a7..e7bf5ac1af3 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Apache.Ignite.Tests.Aot.csproj
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Tests.Aot/Apache.Ignite.Tests.Aot.csproj
@@ -11,6 +11,7 @@
         <ILLinkTreatWarningsAsErrors>true</ILLinkTreatWarningsAsErrors>
         <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
         <WarningsAsErrors>$(WarningsAsErrors);IL3050</WarningsAsErrors>
+        <IsPackable>false</IsPackable>
     </PropertyGroup>
 
     <ItemGroup>
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Tests.Common/Apache.Ignite.Tests.Common.csproj
 
b/modules/platforms/dotnet/Apache.Ignite.Tests.Common/Apache.Ignite.Tests.Common.csproj
index 34f60f9f991..0522c630edf 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Tests.Common/Apache.Ignite.Tests.Common.csproj
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Tests.Common/Apache.Ignite.Tests.Common.csproj
@@ -6,7 +6,8 @@
         <Nullable>enable</Nullable>
         <SignAssembly>true</SignAssembly>
         
<AssemblyOriginatorKeyFile>Apache.Ignite.Tests.Common.snk</AssemblyOriginatorKeyFile>
-        <IsTrimmable>true</IsTrimmable>        
+        <IsTrimmable>true</IsTrimmable>
+        <IsPackable>false</IsPackable>
     </PropertyGroup>
 
     <ItemGroup>
diff --git a/modules/platforms/dotnet/Apache.Ignite.Tests/ProjectFilesTests.cs 
b/modules/platforms/dotnet/Apache.Ignite.Tests/ProjectFilesTests.cs
index fe19d6c7ea3..42a140f7a4c 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Tests/ProjectFilesTests.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Tests/ProjectFilesTests.cs
@@ -141,6 +141,28 @@ namespace Apache.Ignite.Tests
             }
         }
 
+        [Test]
+        public void TestBenchmarkAndTestProjectsAreNotPackable()
+        {
+            foreach (var file in Directory.GetFiles(TestUtils.SolutionDir, 
"*.csproj", SearchOption.AllDirectories))
+            {
+                var fileName = Path.GetFileName(file);
+
+                if (!fileName.Contains("Test", 
StringComparison.OrdinalIgnoreCase) &&
+                    !fileName.Contains("Benchmark", 
StringComparison.OrdinalIgnoreCase))
+                {
+                    continue;
+                }
+
+                var text = File.ReadAllText(file);
+
+                StringAssert.Contains(
+                    "<IsPackable>false</IsPackable>",
+                    text,
+                    "Test and benchmark projects must not be packable: " + 
fileName);
+            }
+        }
+
         [SuppressMessage("Design", "CA1064:Exceptions should be public", 
Justification = "Tests.")]
         [SuppressMessage("Design", "CA1032:Implement standard exception 
constructors", Justification = "Tests.")]
         private sealed class TodoWithoutTicketException : AssertionException

Reply via email to