dotnet / maui-samples

Samples for .NET Multi-Platform App UI (.NET MAUI)
https://dot.net/maui
MIT License
3.15k stars 1.28k forks source link

Point of Sale will not even Compile... #457

Open davidcorbin-atmosera opened 7 months ago

davidcorbin-atmosera commented 7 months ago

I realize this is not a "Complete Application", but I would expect it to at least compile [hopefully, I am doing something wrong]

https://github.com/dotnet/maui-samples/blob/main/8.0/Apps/PointOfSale/src/PointOfSale/PointOfSale.csproj

Build started at 9:59 AM... 1>------ Build started: Project: PointOfSale, Configuration: Debug Any CPU ------ 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(90,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(90,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(90,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(90,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file. 1>CSC : warning CS9057: The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.203\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll' references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(26,9,26,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(58,26,58,28): warning CS0168: The variable 'ex' is declared but never used 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(38,9,38,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(36,16,36,26): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(32,16,32,19): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>CSC : warning CS9057: The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.203\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll' references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(26,9,26,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(58,26,58,28): warning CS0168: The variable 'ex' is declared but never used 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(38,9,38,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(36,16,36,26): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(32,16,32,19): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\DashboardViewModel.cs(4,22,4,40): warning MVVMTK0032: The type PointOfSale.Pages.DashboardViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(6,22,6,43): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrderDetailsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrdersViewModel.cs(4,22,4,37): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrdersViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.PayViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(7,22,7,27): warning MVVMTK0032: The type PointOfSale.Models.Order is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(5,22,5,38): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.ReceiptViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Item.cs(4,22,4,26): warning MVVMTK0032: The type PointOfSale.Models.Item is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(8,22,8,40): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.SignatureViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.TipViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(5,22,5,35): warning MVVMTK0032: The type PointOfSale.Pages.HomeViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\SettingsViewModel.cs(4,22,4,39): warning MVVMTK0032: The type PointOfSale.Pages.SettingsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(5,22,5,41): warning MVVMTK0032: The type PointOfSale.Pages.AddProductViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\OrderCartViewModel.cs(5,22,5,40): warning MVVMTK0032: The type PointOfSale.Pages.Views.OrderCartViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning MVVMTK0039: The method PointOfSale.Pages.AddProductViewModel.Save() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(22,75,22,83): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.category is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(23,9,23,13): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(24,27,24,31): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(22,23,22,28): warning MVVMTK0034: The field PointOfSale.Models.Order.items is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(23,17,23,20): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(24,36,24,39): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(51,24,51,27): warning MVVMTK0039: The method PointOfSale.Models.Order.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(20,16,20,24): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.TipViewModel.Continue() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(24,24,24,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(15,9,15,14): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(17,38,17,43): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(22,24,22,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(11,16,11,20): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.ReceiptViewModel.Done() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(21,28,21,33): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.OrderDetailsViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(16,8,16,17): warning MVVMTK0034: The field PointOfSale.Pages.HomeViewModel._products is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(11,16,11,19): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.PayViewModel.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(15,24,15,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.PayViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>CSC : warning CS9057: The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.203\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll' references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'. 1>AppShell.xaml(75,19): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(26,9,26,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(38,9,38,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(36,16,36,26): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(58,26,58,28): warning CS0168: The variable 'ex' is declared but never used 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(32,16,32,19): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\DashboardViewModel.cs(4,22,4,40): warning MVVMTK0032: The type PointOfSale.Pages.DashboardViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(6,22,6,43): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrderDetailsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrdersViewModel.cs(4,22,4,37): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrdersViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Item.cs(4,22,4,26): warning MVVMTK0032: The type PointOfSale.Models.Item is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(7,22,7,27): warning MVVMTK0032: The type PointOfSale.Models.Order is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.PayViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(5,22,5,38): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.ReceiptViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(8,22,8,40): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.SignatureViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.TipViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(5,22,5,35): warning MVVMTK0032: The type PointOfSale.Pages.HomeViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\SettingsViewModel.cs(4,22,4,39): warning MVVMTK0032: The type PointOfSale.Pages.SettingsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(5,22,5,41): warning MVVMTK0032: The type PointOfSale.Pages.AddProductViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\OrderCartViewModel.cs(5,22,5,40): warning MVVMTK0032: The type PointOfSale.Pages.Views.OrderCartViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(22,23,22,28): warning MVVMTK0034: The field PointOfSale.Models.Order.items is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(23,17,23,20): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(24,36,24,39): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(51,24,51,27): warning MVVMTK0039: The method PointOfSale.Models.Order.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(20,16,20,24): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.TipViewModel.Continue() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(24,24,24,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(15,9,15,14): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(17,38,17,43): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(22,24,22,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(11,16,11,20): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.ReceiptViewModel.Done() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(11,16,11,19): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.PayViewModel.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(15,24,15,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.PayViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning MVVMTK0039: The method PointOfSale.Pages.AddProductViewModel.Save() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(22,75,22,83): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.category is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(23,9,23,13): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(24,27,24,31): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(16,8,16,17): warning MVVMTK0034: The field PointOfSale.Pages.HomeViewModel._products is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(21,28,21,33): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.OrderDetailsViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>Pages\Handheld\SignaturePage.xaml(25,48): XamlC error XFC0000: Cannot resolve type "clr-namespace:PointOfSale:Main". 1>Pages\HomePage.xaml(23,29): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\HomePage.xaml(26,48): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\Views\FlyoutButtonView.xaml(89,24): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Done building project "PointOfSale.csproj" -- FAILED. 1>AppShell.xaml(75,19): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\Handheld\SignaturePage.xaml(25,48): XamlC error XFC0000: Cannot resolve type "clr-namespace:PointOfSale:Main". 1>Pages\HomePage.xaml(23,29): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\HomePage.xaml(26,48): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\Views\FlyoutButtonView.xaml(89,24): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Done building project "PointOfSale.csproj" -- FAILED. 1>CSC : warning CS9057: The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.203\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll' references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(32,16,32,19): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(26,9,26,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(58,26,58,28): warning CS0168: The variable 'ex' is declared but never used 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(38,9,38,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(36,16,36,26): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Item.cs(4,22,4,26): warning MVVMTK0032: The type PointOfSale.Models.Item is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(7,22,7,27): warning MVVMTK0032: The type PointOfSale.Models.Order is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(6,22,6,43): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrderDetailsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(5,22,5,35): warning MVVMTK0032: The type PointOfSale.Pages.HomeViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrdersViewModel.cs(4,22,4,37): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrdersViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\DashboardViewModel.cs(4,22,4,40): warning MVVMTK0032: The type PointOfSale.Pages.DashboardViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.PayViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\SettingsViewModel.cs(4,22,4,39): warning MVVMTK0032: The type PointOfSale.Pages.SettingsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(5,22,5,38): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.ReceiptViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\OrderCartViewModel.cs(5,22,5,40): warning MVVMTK0032: The type PointOfSale.Pages.Views.OrderCartViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(8,22,8,40): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.SignatureViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.TipViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(5,22,5,41): warning MVVMTK0032: The type PointOfSale.Pages.AddProductViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(22,23,22,28): warning MVVMTK0034: The field PointOfSale.Models.Order.items is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(23,17,23,20): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(24,36,24,39): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(51,24,51,27): warning MVVMTK0039: The method PointOfSale.Models.Order.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(20,16,20,24): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.TipViewModel.Continue() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(24,24,24,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(15,9,15,14): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(21,28,21,33): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.OrderDetailsViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(17,38,17,43): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(22,24,22,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning MVVMTK0039: The method PointOfSale.Pages.AddProductViewModel.Save() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(22,75,22,83): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.category is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(23,9,23,13): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(24,27,24,31): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(11,16,11,20): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.ReceiptViewModel.Done() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(11,16,11,19): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.PayViewModel.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(15,24,15,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.PayViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(16,8,16,17): warning MVVMTK0034: The field PointOfSale.Pages.HomeViewModel._products is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>AppShell.xaml(75,19): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\Handheld\SignaturePage.xaml(25,48): XamlC error XFC0000: Cannot resolve type "clr-namespace:PointOfSale:Main". 1>Pages\HomePage.xaml(23,29): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\HomePage.xaml(26,48): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\Views\FlyoutButtonView.xaml(89,24): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Done building project "PointOfSale.csproj" -- FAILED. 1>CSC : warning CS9057: The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.203\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll' references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(26,9,26,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(58,26,58,28): warning CS0168: The variable 'ex' is declared but never used 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(38,9,38,24): warning CS0618: 'MessagingCenter' is obsolete: 'We recommend migrating toCommunityToolkit.Mvvm.Messaging.WeakReferenceMessenger: https://www.nuget.org/packages/CommunityToolkit.Mvvm' 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(36,16,36,26): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(32,16,32,19): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\DashboardViewModel.cs(4,22,4,40): warning MVVMTK0032: The type PointOfSale.Pages.DashboardViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Item.cs(4,22,4,26): warning MVVMTK0032: The type PointOfSale.Models.Item is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(7,22,7,27): warning MVVMTK0032: The type PointOfSale.Models.Order is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(6,22,6,43): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrderDetailsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.PayViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrdersViewModel.cs(4,22,4,37): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.OrdersViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(5,22,5,38): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.ReceiptViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(8,22,8,40): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.SignatureViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(5,22,5,35): warning MVVMTK0032: The type PointOfSale.Pages.HomeViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\SettingsViewModel.cs(4,22,4,39): warning MVVMTK0032: The type PointOfSale.Pages.SettingsViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(5,22,5,41): warning MVVMTK0032: The type PointOfSale.Pages.AddProductViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(5,22,5,34): warning MVVMTK0032: The type PointOfSale.Pages.Handheld.TipViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\OrderCartViewModel.cs(5,22,5,40): warning MVVMTK0032: The type PointOfSale.Pages.Views.OrderCartViewModel is using the [INotifyPropertyChanged] attribute while having no base type, and it should instead inherit from ObservableObject (https://aka.ms/mvvmtoolkit/errors/mvvmtk0032) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(20,16,20,20): warning MVVMTK0039: The method PointOfSale.Pages.AddProductViewModel.Save() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(22,75,22,83): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.category is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(23,9,23,13): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Views\AddProductViewModel.cs(24,27,24,31): warning MVVMTK0034: The field PointOfSale.Pages.AddProductViewModel.item is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\HomeViewModel.cs(16,8,16,17): warning MVVMTK0034: The field PointOfSale.Pages.HomeViewModel._products is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(20,16,20,24): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.TipViewModel.Continue() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(24,24,24,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\TipViewModel.cs(15,9,15,14): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.TipViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(22,23,22,28): warning MVVMTK0034: The field PointOfSale.Models.Order.items is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(23,17,23,20): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(24,36,24,39): warning MVVMTK0034: The field PointOfSale.Models.Order.tip is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Models\Order.cs(51,24,51,27): warning MVVMTK0039: The method PointOfSale.Models.Order.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\OrderDetailsViewModel.cs(21,28,21,33): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.OrderDetailsViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(11,16,11,19): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.PayViewModel.Pay() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\PayViewModel.cs(15,24,15,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.PayViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(17,38,17,43): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\SignatureViewModel.cs(22,24,22,29): warning MVVMTK0034: The field PointOfSale.Pages.Handheld.SignatureViewModel.order is annotated with [ObservableProperty] and should not be directly referenced (use the generated property instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0034) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\Pages\Handheld\ReceiptViewModel.cs(11,16,11,20): warning MVVMTK0039: The method PointOfSale.Pages.Handheld.ReceiptViewModel.Done() annotated with [RelayCommand] is async void (make sure to return a Task type instead) (https://aka.ms/mvvmtoolkit/errors/mvvmtk0039) 1>D:\repos\GitHub\maui-samples\8.0\Apps\PointOfSale\src\PointOfSale\MauiProgram.cs(35,9,35,48): warning CA1416: This call site is reachable on: 'Android' 21.0 and later. 'BlazorWebViewServiceCollectionExtensions.AddMauiBlazorWebView(IServiceCollection)' is only supported on: 'android' 23.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416) 1>AppShell.xaml(75,19): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\Handheld\SignaturePage.xaml(25,48): XamlC error XFC0000: Cannot resolve type "clr-namespace:PointOfSale:Main". 1>Pages\HomePage.xaml(23,29): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\HomePage.xaml(26,48): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Pages\Views\FlyoutButtonView.xaml(89,24): XamlC XC0022 warning : Binding could be compiled if x:DataType is specified. 1>Done building project "PointOfSale.csproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ========== Build completed at 9:59 AM and took 37.725 seconds ==========

jfversluis commented 7 months ago

Is this with Visual Studio on Windows? Just tried it on macOS with VS Code and compiled and ran just fine here!

davidcorbin-atmosera commented 7 months ago

Is this with Visual Studio on Windows? Just tried it on macOS with VS Code and compiled and ran just fine here!

Yes, Visual Studio 2022 [17.9.5] .. My first indication was the warning C:\Program Files\dotnet\packs\Microsoft.Maui.Sdk\8.0.7\Sdk\BundledVersions.targets(85,5): warning MA002: Starting with .NET 8, setting <UseMaui>true</UseMaui> does not automatically include NuGet package references in your project. Update your project by including this item: <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.7" />. You can skip this warning by setting <SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences> in your project file.

This would (to me) indicate that the project files had not been updated....so I figured I would ask...

jfversluis commented 7 months ago

Yeah I think there is a PR for that but that didn't get merged yet. Regardless, it works fine for me without it, as it should.

The real error seems to be this one: 1>Pages\Handheld\SignaturePage.xaml(25,48): XamlC error XFC0000: Cannot resolve type "clr-namespace:PointOfSale:Main".

davidcorbin-atmosera commented 7 months ago

Yes, as I said it was an indicator... as to the can not resolve type... that may be to be related to:

CSC : warning CS9057: The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.203\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll' references version '4.9.0.0' of the compiler, which is newer than the currently running version '4.8.0.0'.

But not sure....

Also, note that this was done on a relatively clean machine that had not done any MAUI work previously. When opening the SLN in VS-2022 is indicated some additional components needed to be installed, and I let the VS ecosystem take care of that.

If you are using Vs-Code (this is 40% hypothesis, not use-case I actually do) that spawns off a bunch of dotnet command lines and there may be "workloads" involved that do not get set in the expected manner when the normal use case is via Visual Studio.....