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
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?