Skip to content

Commit

Permalink
Merge pull request unoplatform#17061 from Youssef1313/ios-net7
Browse files Browse the repository at this point in the history
build: Cleanup net7.0-ios
  • Loading branch information
jeromelaban authored Jun 9, 2024
2 parents 95ae2db + ee0d759 commit 2e81c9f
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 51 deletions.
2 changes: 0 additions & 2 deletions build/ci/.azure-devops-ios-tests-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ jobs:
UITEST_RUNTIME_TEST_GROUP_COUNT: "${{ parameters.UITEST_RUNTIME_TEST_GROUP_COUNT }}"
UITEST_TEST_TIMEOUT: "${{ parameters.UITEST_TEST_TIMEOUT }}"
UNO_UITEST_IOSBUNDLE_PATH: "$(build.sourcesdirectory)/build/ios-uitest-build/SamplesApp.app"
UnoTargetFrameworkOverride: "net7.0-ios"
- task: PublishTestResults@2
condition: always()
Expand Down Expand Up @@ -126,7 +125,6 @@ jobs:
UITEST_RUNTIME_TEST_GROUP_COUNT: "${{ parameters.UITEST_RUNTIME_TEST_GROUP_COUNT }}"
UITEST_TEST_TIMEOUT: "${{ parameters.UITEST_TEST_TIMEOUT }}"
UNO_UITEST_IOSBUNDLE_PATH: "$(build.sourcesdirectory)/build/ios-uitest-build/SamplesApp.app"
UnoTargetFrameworkOverride: "net7.0-ios"
- task: PublishTestResults@2
condition: eq(variables.UITEST_ALLOW_RERUN, 'true')
Expand Down
27 changes: 0 additions & 27 deletions build/ci/templates/dotnet7-mobile-install-mac.yml

This file was deleted.

3 changes: 0 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@

<PropertyGroup>
<MicrosoftNetCompilersToolsetVersion>4.10.0-3.final</MicrosoftNetCompilersToolsetVersion>
<!-- Because Xamarin.UITest doesn't work for net7.0, we keep building iOS SamplesApp for tests with .NET 7 SDK -->
<!-- Using Roslyn 4.10 with .NET 7 SDK is not supported because of https://github.com/dotnet/roslyn/pull/71507 -->
<MicrosoftNetCompilersToolsetVersion Condition="'$(UnoTargetFrameworkOverride)'=='net7.0-ios'">4.9.2</MicrosoftNetCompilersToolsetVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions src/SamplesApp/SamplesApp.UITests/SamplesApp.UITests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- Ideally, this should be $(NetPrevious), but as we still build iOS tests on net7.0, we have to match here. -->
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>$(NetPrevious)</TargetFramework>

<DefineConstants Condition="$(UnoTargetFrameworkOverride.ToLowerInvariant().EndsWith('-android'))">$(DefineConstants);TARGET_FRAMEWORK_OVERRIDE_ANDROID</DefineConstants>

Expand Down
6 changes: 0 additions & 6 deletions src/Uno.Foundation.Logging/Uno.Foundation.Logging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
<!-- Though we could use UnoTargetFrameworkOverride to choose between NetPrevious and NetCurrent -->
<!-- As of writing this comment, we don't see a need to do that, so we keep it simple -->
<TargetFrameworks>$(NetPrevious)</TargetFrameworks>

<!-- We check specifically for net7.0-ios -->
<!-- Our builds are now all net8.0+ -->
<!-- However, Xamarin.UITest doesn't (probably won't) support net8.0+ -->
<!-- So, we still build SamplesApp in net7.0-ios in CI to be able to run UI tests -->
<TargetFrameworks Condition="'$(UnoTargetFrameworkOverride)'=='net7.0-ios'">net7.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down
3 changes: 1 addition & 2 deletions src/Uno.NUnitTransformTool/Uno.NUnitTransformTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<!-- We keep it on the oldest supported TFM -->
<!-- Though we could use UnoTargetFrameworkOverride to choose between NetPrevious and NetCurrent -->
<!-- As of writing this comment, we don't see a need to do that, so we keep it simple -->
<!-- Ideally, this should be $(NetPrevious), but as we still build iOS tests on net7.0, we have to match here. -->
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>$(NetPrevious)</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<RollForward>major</RollForward>
</PropertyGroup>
Expand Down
9 changes: 0 additions & 9 deletions src/targetframework-override-noplatform.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
<TargetFrameworks>net8.0</TargetFrameworks>
</PropertyGroup>
</When>
<!-- We check specifically for net7.0-ios -->
<!-- Our builds are now all net8.0+ -->
<!-- However, Xamarin.UITest doesn't (probably won't) support net8.0+ -->
<!-- So, we still build SamplesApp in net7.0-ios in CI to be able to run UI tests -->
<When Condition="'$(UnoTargetFrameworkOverride)' == 'net7.0-ios'">
<PropertyGroup>
<TargetFrameworks>net7.0</TargetFrameworks>
</PropertyGroup>
</When>
</Choose>

</Project>

0 comments on commit 2e81c9f

Please sign in to comment.