syncfusion / maui-demos

This repository contains the Syncfusion .NET MAUI control’s samples and the guide to use them
196 stars 49 forks source link

Won't build? #19

Closed plettb closed 2 years ago

plettb commented 2 years ago

Using VS2022 17.2.0 Preview 2.0, if I just download the source (either Git or zip) and try to build/run it I get:

C:\Research\maui-demos-master\SampleBrowser.Maui.Core\Controls\WrapLayout\WrapLayout.cs(64,49,64,58): error CS0246: The type or namespace name 'Rectangle' could not be found (are you missing a using directive or an assembly reference?)

If I fix "WrapLayout.cs" (fix the override to use "Rect" rather than "Rectangle")

C:\Research\maui-demos-master\SampleBrowser.Maui\Samples\SfCartesianChart\Samples\Bar\BarChart.xaml.cs(95,9,95,19): error CS0246: The type or namespace name 'RectangleF' could not be found (are you missing a using directive or an assembly reference?)

(Actually there are 7 errors due to referencing "RectangleF" - that's just the first one.)

Help?

christian-becker-ta commented 2 years ago

same issues. This came with the Update of .Net Maui to Preview 14. Since then I can't use anymore the Scheduler

PaulAndersonS commented 2 years ago

Hi All,

Greetings from Syncfusion.

Now the .NET MAUI preview 14 compatible support for Syncfusion MAUI SampleBrowser has been provided and also has our latest Volume 1 2022 release updates has been added. Please checkout the latest files.

plettb commented 2 years ago

Now the .NET MAUI preview 14 compatible support for Syncfusion MAUI SampleBrowser has been provided and also has our latest Volume 1 2022 release updates has been added. Please checkout the latest files.

Nope, it still won't build for me. This is an essentially new/clean install. I'm running Version 17.2.0 Preview 3.0. Problems:

  1. SampleBrowser.Maui.Core\Controls\TabBar\CustomGrid.cs(55,29,55,43): error CS0104: 'TouchEventArgs' is an ambiguous reference between 'Microsoft.Maui.Controls.TouchEventArgs' and 'Syncfusion.Maui.Core.Internals.TouchEventArgs' - fairly easily fixed, but really - should I need to fix this?
  2. SampleBrowser.Maui\SampleBrowser.Maui.csproj : error NU1605: Detected package downgrade: Microsoft.Graphics.Win2D from 1.0.1 to 1.0.0.30. Reference the package directly from the project to select a different version. and SampleBrowser.Maui\SampleBrowser.Maui.csproj : error NU1605: Detected package downgrade: Microsoft.WindowsAppSDK from 1.0.1 to 1.0.0. Reference the package directly from the project to select a different version. - oddly not so easily fixed. I had to edit the csproj directly in order to fix it.
  3. SampleBrowser.Maui\App.xaml.cs(10,22,10,32): error CS0234: The type or namespace name 'Essentials' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?) - I haven't gotten this fixed yet. I tried a few "Microsoft.Maui.Essentials" NuGets, but none seemed to work.

Seriously, if this is an indication of Syncfusion's commitment to Maui, I may have to reconsider either my commitment to Maui or my commitment to Syncfusion! This is scary!

AndreasReitberger commented 2 years ago

I opened a ticket at Syncfusion for this. The developer said RC1 has huge changes and they will come back to me on April 19 with further information.

plettb commented 2 years ago

The developer said RC1 has huge changes

Yeah ok - that's a valid reason. I noticed a surprising number of changes myself in RC1.

AndreasReitberger commented 2 years ago

Update should come on 26.4 according to Syncfusion 👍🏻

PaulAndersonS commented 2 years ago

Hi,

Now the demos are compatible with .NET MAUI GA update.

plettb commented 2 years ago

Now the demos are compatible with .NET MAUI GA update.

Yes, I can confirm that it now compiles on my machine. It seems a little bit buggy, but for the most part it works. :)

Thanks!