I have a UWP application that I am trying to create. Everything works fine in debug mode, but when I switch to release and then try to build, it shows an error
error CS0012: The type "Windows.UI.Xaml.FrameworkElement" in the assembly that is not referenced is set. You must add a reference to the assembly 'Windows.Foundation.UniversalApiContract, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null, ContentType = WindowsRuntime'.
I limited it to a project property called the "Compile with.NET Native tool chain", which is the source of the problem. At least a project can build when I remove this property. However, I would prefer to enable this option. I have added links to the extensions of Windows Desktop and Windows Mobile.
Any idea what I need to do to fix this?
Tommy source
share