From 8705fb3fadd0c09f293810179add7774ef108ade Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Saenz Date: Tue, 21 Jan 2025 18:43:09 -0500 Subject: [PATCH] Try to fix tests in ci by building the needed apidefinitions. --- .../BaseTransformerTestClass.cs | 1 - .../Microsoft.Macios.Transformer.Tests.csproj | 96 +++++++++++-------- 2 files changed, 54 insertions(+), 43 deletions(-) diff --git a/tests/rgen/Microsoft.Macios.Transformer.Tests/BaseTransformerTestClass.cs b/tests/rgen/Microsoft.Macios.Transformer.Tests/BaseTransformerTestClass.cs index e8dd76808408..329c21995b07 100644 --- a/tests/rgen/Microsoft.Macios.Transformer.Tests/BaseTransformerTestClass.cs +++ b/tests/rgen/Microsoft.Macios.Transformer.Tests/BaseTransformerTestClass.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System.Collections.Immutable; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj b/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj index 7ee72ccb9417..dca7ca187863 100644 --- a/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj +++ b/tests/rgen/Microsoft.Macios.Transformer.Tests/Microsoft.Macios.Transformer.Tests.csproj @@ -1,50 +1,62 @@  - - net$(BundledNETCoreAppTargetFrameworkVersion) - enable - enable - false - + + net$(BundledNETCoreAppTargetFrameworkVersion) + enable + enable + false - - - - - - + + $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\..\..')) + $(RootDirectory)/src/build/dotnet + - - - + + + + + + - - - - + + + - - - external\Configuration.cs - - - external\ConfigurationXUnit.cs - - - external\Profile.cs - - - external\ExecutionHelper.cs - - - external\StringUtils.cs - - - external\Execution.cs - - - external\Cache.cs - - + + + + + + + + external\Configuration.cs + + + external\ConfigurationXUnit.cs + + + external\Profile.cs + + + external\ExecutionHelper.cs + + + external\StringUtils.cs + + + external\Execution.cs + + + external\Cache.cs + + + + + + + + + +