title: How to build App without App.runtimeconfig.json?
body: <p>When I build the <code>App</code> in <code>Release</code> mode in Visual Studio it generates these files in Release folder:</p>
  <pre><code>App.exe 
  App.dll 
  App.runtimeconfig.json 
  App.pdb
  App.deps.json
  App.runtimeconfig.dev.json
  </code></pre>
  <p>If I move the first 3 files location and double click the <code>App.exe</code> it starts. If I delete <code>App.runtimeconfig.json</code> it doesn't start!</p>
  <p>I want to keep only <code>App.exe</code> and <code>App.dll</code> in my folder, what do I have to do to get rid of that <code>App.runtimeconfig.json</code>?</p>
  <hr />
  <p><strong>EDIT #1</strong></p>
  <p>Here's the content of <code>App.runtimeconfig.json</code>:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;runtimeOptions&quot;: {
      &quot;tfm&quot;: &quot;netcoreapp3.0&quot;,
      &quot;framework&quot;: {
        &quot;name&quot;: &quot;Microsoft.WindowsDesktop.App&quot;,
        &quot;version&quot;: &quot;3.0.0&quot;
      }
    }
  }
  </code></pre>
  <hr />
  <p><strong>EDIT #2</strong></p>
  <p>Here's what I've now in my <code>App.csproj</code> file's <code>PropertyGroup</code>:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;PropertyGroup&gt;
      &lt;OutputType&gt;WinExe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp3.0&lt;/TargetFramework&gt;
      &lt;PublishTrimmed&gt;true&lt;/PublishTrimmed&gt;
      &lt;PublishReadyToRun&gt;true&lt;/PublishReadyToRun&gt;
      &lt;PublishSingleFile&gt;true&lt;/PublishSingleFile&gt;
      &lt;RuntimeIdentifier&gt;win-x64&lt;/RuntimeIdentifier&gt;
      &lt;UseWPF&gt;true&lt;/UseWPF&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  <p>now I get this in <code>Error List</code> of Visual studio:</p>
  <blockquote>
  <p>Error NETSDK1047  Assets file 'C:\Users\Emon\source\repos\SocketTest\App\obj\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v3.0/win-x64'. Ensure that restore has run and that you have included 'netcoreapp3.0' in the TargetFrameworks for your project. You may also need to include 'win-x64' in your project's RuntimeIdentifiers. App C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets    234</p>
  </blockquote>
  <p>When I right click on Project I see: Build, Clean, Rebuild, etc., there's no restore!</p>
  <hr />
  <p><strong>EDIT #3</strong></p>
  <p>I've deleted the <code>bin</code> and <code>obj</code> folders first and reordered the <code>&lt;PropertyGroup&gt;</code> to put the <code>&lt;RuntimeIdentifier&gt;</code> beneath the <code>&lt;TargetFramework&gt;</code>, now it works!</p>