title: Building Rust project alongside .NET Core
body: <p>Is there any way to build a Rust project with a C# .NET Core project when invoking <code>dotnet build</code>? The project structure is as follows:</p>
  
  <pre><code>&lt;Root&gt;
    &gt; Engine
      Main.cs
    &gt; Native
      &gt; src
        lib.rs
      Cargo.toml
    Root.sln
  </code></pre>
  
  <p>I am using P/Invoke to call the rust <code>Native</code> library from <code>Engine</code>, and I want a convenience step to build both the rust project and the c# project when <code>dotnet build</code> is invoked, including setup such as copying of the rust <code>Native</code> library into the output folder of the c# project etc.</p>
  
  <p><em>Extra</em>: If possible, is there any way to 'bundle' the <code>Native</code> library into the compiled c# <code>Engine</code>?</p>