microsoft / Xaml-Islands-Samples

MIT License
102 stars 44 forks source link

Getting many issues with building this repo in latest Visual Studio #66

Open rajendrasp opened 12 months ago

rajendrasp commented 12 months ago

I am trying to build the samples from win32 folder specifically SampleCppApp. Getting many issues. I am using VS 2022. When I change target platform, it is still giving me error saying that v140 toolset not installed. It seems it somehow refers to project \Samples\Native\MyApp. I do not understand why it does it. Also, the package paths for imported packages seem incorrect. They start with .... but packages folder is created in the same folder as solution folder in VS 2022 so that is messed up. Now after fixing all that, I am stuck with below error

Error MIDL2011 [msg]unresolved type declaration [context]: Windows.UI.Xaml.Controls.UserControl [ RuntimeClass 'MyApp.MainUserControl' ]

This error comes from MyApp project which I do not understand why needs to be built to work with SampleCppApp.

Any help?

Bricebrousseau commented 1 week ago

I encountered the same errors. We'll need to define the steps to properly set up the environment using VS2022