dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Version 8.0.100 produces compilation errors in standard application #25820

Closed MerSpyro closed 1 week ago

MerSpyro commented 1 week ago

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]
Syed-RI commented 1 week ago

I cant see version 8.0.100 in nuget yet šŸ§

MerSpyro commented 1 week ago

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

Syed-RI commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

@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

PureWeen commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

Output of dotnet list package command:

Image

Zhanglirong-Winnie commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

Yes I think the package is not uploaded

PureWeen commented 1 week ago

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 commented 1 week ago

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! šŸ˜ƒ