How to use a WinRT component in c# console(windows form) app?
<p>I have a c++ WinRT component, added to my console app reference. It compiles without any error, but when running app get following error</p>

<blockquote>
  <p>An unhandled exception of type 'System.TypeLoadException' occurred in
  mscorlib.dll</p>
  
  <p>Additional information: Could not find Windows Runtime type
  'ProcessorInfoComponent.ProcessorInfoProvider'.
  <a href="http://i.stack.imgur.com/prLRn.jpg" rel="nofollow">my error</a></p>
</blockquote>

<p>This is my code:</p>

<p>.h file :</p>

<pre><code>#pragma once

namespace ProcessorInfoComponent
{
public ref class ProcessorInfoProvider sealed
{
   public:
      bool IsNeonSupported();
};
}
</code></pre>

<p>.cpp file:</p>

<pre><code>#include "pch.h"
#include "ProcessorInfoComponent.h"
using namespace ProcessorInfoComponent;

bool ProcessorInfoProvider::IsNeonSupported()
{
     return IsProcessorFeaturePresent(PF_ARM_VFP_32_REGISTERS_AVAILABLE);
}
</code></pre>

<p>and using in c# is:
.cs</p>

<pre><code>    static void Main(string[] args)

    {

        var processorInfoProvider = new ProcessorInfoComponent.ProcessorInfoProvider();

        var isNeonSupported = processorInfoProvider.IsNeonSupported();

        Console.WriteLine(isNeonSupported);

    }
</code></pre>

<p>this WinRT work very well in windows phone and WPF APP but in windows form and console app not work.
thanks.</p>