Please note that we are building an app to run on Windows 10, but when we check in the code we are getting these build errors
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(268, 9): error MC1000: Unknown build error, 'Cannot resolve dependency to Windows Runtime type 'Windows.Foundation.Metadata.PlatformAttribute'. When using the ReflectionOnly APIs, dependent Windows Runtime assemblies must be resolved on demand through the ReflectionOnlyNamespaceResolve event.'
It looks like these items are missing on Windows Server 2012 R2 version 6.3
since these are our build servers, but the app is targeted to Windows 10
, so there must be some other deeper-down COM modules missing:
C:\WINDOWS\System32\WinMetadata\Windows.Foundation.winmd
C:\WINDOWS\System32\WinMetadata\Windows.Devices.winmd
Does anyone have any suggestions? TIA
UPDATE:
Please note that I have spent a lot of time researching and troubleshooting the issue. Here are a few links I've found, but they have not resulted in a solution:
Unknown build error Cannot resolve dependency to System.Windows