XamlBrewer / UWP-MachineLearning-Sample

Demonstrates how to use ML.NET to implement some Machine Learning use cases in UWP.
https://xamlbrewer.wordpress.com/category/ml-net/
89 stars 26 forks source link

Can't run the App #4

Closed redcican closed 4 years ago

redcican commented 4 years ago

Hi, I am trying to run the App. But it failed:

Severity    Code    Description Project File    Line    Suppression State
Error   XDG0062 Type Mvvm.ShellViewModel cannot be created in XAML. Building the project may help.  XamlBrewer.Uwp.MachineLearningSample    Shell.xaml  12  
XamlBrewer commented 4 years ago

Let's try to establish a list of requirements for running the app. You need:

If you have these, the app should run.

I also noticed a recent similar issue: https://developercommunity.visualstudio.com/content/problem/739100/xaml-cannot-find-my-viewmodel.html

redcican commented 4 years ago

@XamlBrewer I have Visual Studio Professional 2019 and Windows 10 1903 OS. But I still can not build your app successfully. If I rewrite your app by using WPF, is it possible?

XamlBrewer commented 4 years ago

Did you install the UWP Workload in Visual Studio? (Visual Studio Installer -> Modify)

VsWorkloadForUwp

When rewriting for WPF you will need to start from scratch.

redcican commented 4 years ago

Yes I did. Actually after changing the Platform target to x64, the app works. Thank you very much! Do you have any plane to write blogs about ML.Net by using WPF?

CESARDELATORRE commented 4 years ago

Do you mean WPF or UWP?

redcican commented 4 years ago

I mean WPF.

CESARDELATORRE commented 4 years ago

Not sure about Blog Post, but you have a simple WPF sample using ML.NET here:

The scenario is about anomaly detection on spikes detection (Time series based).

https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/end-to-end-apps/AnomalyDetection-Sales

XamlBrewer commented 4 years ago

Since the app runs, I'm closing the issue.