Skip to content

🔥 FIX - fix unit tests#1694

Merged
pictos merged 17 commits intomainfrom
pj/fix-unit-test
Feb 14, 2024
Merged

🔥 FIX - fix unit tests#1694
pictos merged 17 commits intomainfrom
pj/fix-unit-test

Conversation

@pictos
Copy link
Copy Markdown
Member

@pictos pictos commented Feb 13, 2024

Match versions of Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility

Fixes #1693

@pictos pictos enabled auto-merge (squash) February 13, 2024 21:13
@TheCodeTraveler
Copy link
Copy Markdown
Collaborator

@JoonghyunCho Could you help us bump Tizen to support the latest version of .NET / MAUI?

@pictos
Copy link
Copy Markdown
Member Author

pictos commented Feb 13, 2024

@JoonghyunCho from our logs

Id: Samsung.NET.Sdk.Tizen.Manifest-8.0.200
An exception was caught: Response status code does not indicate success: 404 (The specified blob does not exist.).

Hope that helps to track the error

@JoonghyunCho
Copy link
Copy Markdown
Member

Didn't expect to use .NET 8.0.200 for MAUI 8.0.6. Installing Tizen Workload step is passed properly.

@TheCodeTraveler
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@TheCodeTraveler
Copy link
Copy Markdown
Collaborator

TheCodeTraveler commented Feb 14, 2024

The problem is not in our code; it builds fine locally on my machine.

The problem is that the pipeline is installing an old version of .NET MAUI:

Manifest Version: 8.0.0-rc.1.9171/8.0.100-rc.1

Screenshot 2024-02-15 at 12 38 25 AM

I cannot think of a reason why this is happening, other than there's a problem with the workload manifests being advertised for .NET 8.0.200.

That being said, on my local machine, when I run dotnet workload install maui, the correct latest version of .NET MAUI is installed. I'm unable to reproduce the problem in the build pipeline locally.

@StevilKnevil
Copy link
Copy Markdown
Contributor

I've checked out and built this locally. I was able to reproduce the issue. I modified Directory.Build.props to have <MauiPackageVersion>8.0.6</MauiPackageVersion> and that seemed to resolve the issue for me

@VladislavAntonyuk
Copy link
Copy Markdown
Contributor

Could you please also update System.Speech nuget package to the stable version in CommunityToolkit.Maui.Core

Comment thread azure-pipelines.yml
@TheCodeTraveler
Copy link
Copy Markdown
Collaborator

The problem is not in our code; it builds fine locally on my machine.

The problem is that the pipeline is installing an old version of .NET MAUI:

Manifest Version: 8.0.0-rc.1.9171/8.0.100-rc.1

Screenshot 2024-02-15 at 12 38 25 AM I cannot think of a reason why this is happening, other than there's a problem with the workload manifests being advertised for .NET 8.0.200.

That being said, on my local machine, when I run dotnet workload install maui, the correct latest version of .NET MAUI is installed. I'm unable to reproduce the problem in the build pipeline locally.

Ok -I figured out a work-around: We can first install maui using the roll-back file; this forces the workload manifest to update. Then, when we call dotnet workload install maui, it installs the latest version of .NET MAUI.

dotnet workload install maui --from-rollback-file $(DotNetMauiRollbackFile) --source https://api.nuget.org/v3/index.json
dotnet workload install maui

@pictos pictos merged commit de4eecc into main Feb 14, 2024
@pictos pictos deleted the pj/fix-unit-test branch February 14, 2024 21:28
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Visual studio Build Error on 17.8.7

5 participants