title: Can I write PowerShell binary cmdlet with .NET Core?
body: <p>I'm trying to create a basic PowerShell Module with a binary Cmdlet internals, cause writing things in PowerShell only doesn't look as convenient as in C#.</p>
  
  <p>Following <a href="https://msdn.microsoft.com/en-us/library/dd878342(v=vs.85).aspx">this</a> guide, it looks like I have to:</p>
  
  <ul>
  <li>add <a href="https://powershell.myget.org/feed/powershell-core/package/nuget/Microsoft.PowerShell.SDK">Microsoft.PowerShell.SDK</a> to my <code>project.json</code></li>
  <li>mark my cmdlet class with required attributes</li>
  <li>write manifest file, with <code>RootModule</code>, targeting my <code>.dll</code></li>
  <li>put that <code>.dll</code> nearby manifest</li>
  <li>put both under <code>PSModulePath</code></li>
  </ul>
  
  <p>but, when I'm trying to <code>Import-Module</code>, PowerShell core complains on missing runtime:</p>
  
  <pre><code>Import-Module : Could not load file or assembly 'System.Runtime, Version=4.1.0.0,
  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system
  cannot find the file specified.
  At line:1 char:1 
  </code></pre>
  
  <p>Am I doing something wrong, or such tricky things are not supported yet as well?</p>