title: WPF Application Incorporating WinAPI (Win8) components
body: <p>I have a WPF application which utilizes a handwriting control.</p>
  
  <p>By using an </p>
  
  <pre><code>&lt;InkCanvas&gt;&lt;/InkCanvas&gt;
  </code></pre>
  
  <p>In my XAML, I was able to get the user's strokes, and turn them into text using the InkAnalysis class.  However, this is strictly 32bit, and my requirements dictate a 64bit build.</p>
  
  <p>Unable to find a 64bit compatible library, I looked into upgrading to .NET 4.5 and utilizing the Windows8 classes which are available to desktop apps (by also adding
      &lt;TargetPlatformVersion&gt;8.1&lt;/TargetPlatformVersion&gt; to the csproj file so that I could add the 'Windows' namespace references).  Luckily, Windows.UI.Input.Inking is.</p>
  
  <p>However, when I add the reference to Windows.UI.Input.Inking, I get a build error which states:  </p>
  
  <pre><code>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.'
  </code></pre>
  
  <p>I have looked into the:</p>
  
  <pre><code>Windows.Foundation.Metadata.PlatformAttribute
  </code></pre>
  
  <p>And it seems to want an enum member, either: </p>
  
  <pre><code>Windows.Foundation.Metadata.Platform.Windows
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Windows.Foundation.Metadata.Platform.WindowsPhone
  </code></pre>
  
  <p>This is a desktop application, so I would obviously choose to target Platform.Windows, but cannot figure out how to tell the compiler this.</p>
  
  <p>How can I incorporate this Windows.UI.Input.Inking class into my WPF application?  My end goal is simply to convert strokes from the inkcanvas into text, in a 64 bit environment.</p>