Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 8.0.100 produces compilation errors in standard application #25820

Closed
MerSpyro opened this issue Nov 13, 2024 · 13 comments
Closed

Version 8.0.100 produces compilation errors in standard application #25820

MerSpyro opened this issue Nov 13, 2024 · 13 comments
Labels
i/regression This issue described a confirmed regression on a currently supported version s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@MerSpyro
Copy link

MerSpyro commented Nov 13, 2024

Description

Hello,

recently I have udpated to the version 8.0.100 from 8.0.91 and I started to see compilation errors on most common classes like:
Image

Steps to Reproduce

Create a new project.
Change MAUI version to 8.0.100(SR10)
See that application doesnt build because of compilation issues.

Link to public reproduction project repository

https://github.com/MerSpyro/Maui8100Issue

Version with bug

8.0.100 SR10

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.93 SR9.3

Affected platforms

Android, iOS, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

dotnet workload list
maui-tizen                 8.0.83/8.0.100         SDK 8.0.400        
maui-ios                   8.0.83/8.0.100         SDK 8.0.400        
maui-android               8.0.83/8.0.100         SDK 8.0.400        
maccatalyst                18.0.8314/8.0.100      SDK 8.0.400        

dotnet --list-sdks

6.0.425 [/usr/local/share/dotnet/sdk]
7.0.317 [/usr/local/share/dotnet/sdk]
8.0.401 [/usr/local/share/dotnet/sdk]
8.0.404 [/usr/local/share/dotnet/sdk]
@MerSpyro MerSpyro added the t/bug Something isn't working label Nov 13, 2024
@Syed-RI
Copy link

Syed-RI commented Nov 13, 2024

I cant see version 8.0.100 in nuget yet 🧐

@MerSpyro
Copy link
Author

@Syed-RI
It was reelased some 12 hours ago
Image

@Syed-RI
Copy link

Syed-RI commented Nov 13, 2024

I reference them in the csproj, and when updated encountered a restore error so I checked nuget.orgImage

The latest for 8 is 8.0.93. Even the repro you have attached references the same: https://github.com/MerSpyro/Maui8100Issue/blob/main/Maui8100Issues.csproj#L18

@MerSpyro
Copy link
Author

It seems like Im not the brightest. I assumed
Image
That installed is really what it is, but Rider only shows what it..?? have specified to be installed as installed? but not always. The 8.0.100 is really not available yet so uh. Yea. Case closed @Syed-RI thank you

@Syed-RI
Copy link

Syed-RI commented Nov 13, 2024

@MerSpyro I wouldnt close the issue yet and wait for the team to respond. As it looks like issues you are experiencing are due to a mismatch somewhere or you are experiencing them in 8.0.93. I dont know how the workload thing works, but I think I need to get 8.0.404 .net sdk first, then update the workload to get 8.0.100. But in your case, I think, given you have 8.0.404 sdk installed, it is trying to use 8.0.100 but the workload may no be updated or is incompatible for some reason. Please reopen and tag @PureWeen @rmarinho

@MerSpyro MerSpyro reopened this Nov 13, 2024
@PureWeen
Copy link
Member

It seems like Im not the brightest. I assumed Image That installed is really what it is, but Rider only shows what it..?? have specified to be installed as installed? but not always. The 8.0.100 is really not available yet so uh. Yea. Case closed @Syed-RI thank you

Why is your Maui.Controls.Compatibility set to 9.0.0?

@egvijayanand
Copy link
Contributor

egvijayanand commented Nov 14, 2024

That's how the NuGet package resolution works.

Since it can't find a package version 8.0.100, it resolves to 9.0.0.

warning NU1603: MauiApp1 depends on Microsoft.Maui.Controls (>= 8.0.100) but Microsoft.Maui.Controls 8.0.100 was not found. An approximate best match of Microsoft.Maui.Controls 9.0.0 was resolved.

The core issue is that the service release SR10 (v8.0.100) has no packages uploaded to NuGet.

@egvijayanand
Copy link
Contributor

Output of dotnet list package command:

Image

@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed i/regression This issue described a confirmed regression on a currently supported version labels Nov 14, 2024
@Zhanglirong-Winnie
Copy link

According to repro steps, we can used 8.0.100 to repro this issue on Visual Studio 17.13 Preview 1. 8.0.93 works fine.

@janusw
Copy link
Contributor

janusw commented Nov 14, 2024

I cant see version 8.0.100 in nuget yet 🧐

Still not there apparently:

https://www.nuget.org/packages/Microsoft.Maui.Controls#versions-body-tab

@PureWeen Is there a reason why the package has not been uploaded yet, although the tag is almost a week old already ...?

@Syed-RI
Copy link

Syed-RI commented Nov 14, 2024

Yes I think the package is not uploaded

@PureWeen
Copy link
Member

Dang, sorry about this. Didn't notice the last stage of push had failed.

Just checked nuget.org and it looks like 8.0.100 is up now

@Syed-RI
Copy link

Syed-RI commented Nov 14, 2024

Dang, sorry about this. Didn't notice the last stage of push had failed.

Just checked nuget.org and it looks like 8.0.100 is up now

Thanks for your help! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i/regression This issue described a confirmed regression on a currently supported version s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants