<div dir="ltr">Hello,<div><br>I created a simple windows UWP solution with windows visual studio 2019.<br>I did not make any changes to it but closed visual studio. </div><div><br></div><div>Then I wrote a simple cmake file for it.</div><div>However, it fails in "cmake --build" like this:<br></div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(268,9): error MC6000: Project file must include the </div><div>.NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list. [App1\out\App1.csproj]</div></blockquote><br></div><div>When I add the requested .NET files, three is a different error: </div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>App1\MainPage.xaml(9,5): error MC3074: The tag 'ThemeResource' does not exist in XML namespace </div><div>'<a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation">http://schemas.microsoft.com/winfx/2006/xaml/presentation</a>'. Line 9 Position 5. [App1\out\App1.csproj]<br></div></blockquote><br></div><div>I cannot overcome these problems.</div><div>I generate and compile the solution like this:</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace"><b>cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -S . -B out</b></font><br></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="courier new, monospace"><b>cmake --build out</b></font></div></blockquote><font face="arial, sans-serif"><br></font><div>Cmake version is 3.14.19050301-MSVC_2.</div><font face="arial, sans-serif">The source files are attached but also on <a href="https://drive.google.com/open?id=1ekGxtEXC2mqMpJJb_kKMT-5HmM6QjuFx">google drive</a> in case they vanish.</font></div><div><font face="arial, sans-serif">Probably there is just a simple error but I cannot find it.</font></div><div><br></div><div>Thank you in advance,</div><div>Bengt</div></div>