title: Why visual studio publish app.runtimeconfig.json with empty parameters?
body: <p>Why visual studio publish empty app.runtimeconfig.json?</p>
  
  <p>Steps to reproduce</p>
  
  <ol>
  <li>Publish .net core app 2.2 project.</li>
  <li>Profile Settings:</li>
  </ol>
  
  <blockquote>
  <pre><code>Configuration: Release|x64
  TargetFramework: netcoreapp2.2
  Deployment Mode:Self-contained
  TargetRuntime:win-x64
  </code></pre>
  </blockquote>
  
  <ol start="3">
  <li>Expected behavior</li>
  </ol>
  
  <p>app.runtimeconfig.json:</p>
  
  <pre><code>{ "runtimeOptions": { "tfm": "netcoreapp2.2", "framework": { "name": "Microsoft.NETCore.App", "version": "2.2.0" } } }
  </code></pre>
  
  <p>Actual behavior</p>
  
  <pre><code> {
    "runtimeOptions": {}
   }
  </code></pre>
  
  <p>Environment data.</p>
  
  <p>dotnet --info output:</p>
  
  <pre><code> Џ ЄҐв SDK ¤«п .NET Core (®ва ¦ ойЁ© «оЎ®© global.json):
      Version: 2.2.101
      Commit: 236713b
      ‘аҐ¤  ўлЇ®«­Ґ­Ёп:
      OS Name: Windows
      OS Version: 6.1.7601
      OS Platform: Windows
      RID: win7-x64
      Base Path: C:\Program Files\dotnet\sdk\2.2.101\
      Host (useful for support):
      Version: 2.2.4
      Commit: f95848e524
      .NET Core SDKs installed:
      1.1.8 [C:\Program Files\dotnet\sdk]
      2.1.104 [C:\Program Files\dotnet\sdk]
      2.1.200 [C:\Program Files\dotnet\sdk]
      2.1.201 [C:\Program Files\dotnet\sdk]
      2.1.202 [C:\Program Files\dotnet\sdk]
      2.1.302 [C:\Program Files\dotnet\sdk]
      2.1.402 [C:\Program Files\dotnet\sdk]
      2.1.403 [C:\Program Files\dotnet\sdk]
      2.1.500 [C:\Program Files\dotnet\sdk]
      2.1.502 [C:\Program Files\dotnet\sdk]
      2.1.503 [C:\Program Files\dotnet\sdk]
      2.1.504 [C:\Program Files\dotnet\sdk]
      2.1.505 [C:\Program Files\dotnet\sdk]
      2.1.602 [C:\Program Files\dotnet\sdk]
      2.2.101 [C:\Program Files\dotnet\sdk]
      2.2.102 [C:\Program Files\dotnet\sdk]
      2.2.203 [C:\Program Files\dotnet\sdk]
      .NET Core runtimes installed:
      Microsoft.AspNetCore.All 2.1.2 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.1.4 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.1.5 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.1.6 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.1.7 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.1.8 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.1.9 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.2.0 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.2.1 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.All 2.2.4 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.All]
      Microsoft.AspNetCore.App 2.1.2 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.1.4 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.1.5 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.1.6 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.1.7 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.1.8 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.1.9 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.2.0 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.2.1 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.AspNetCore.App 2.2.4 [C:\Program 
      Files\dotnet\shared\Microsoft.AspNetCore.App]
      Microsoft.NETCore.App 1.0.10 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 1.1.7 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.0.6 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.0.7 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.0.9 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.1.2 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.1.4 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.1.5 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.1.6 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.1.7 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.1.8 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.1.9 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.2.0 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.2.1 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
      Microsoft.NETCore.App 2.2.4 [C:\Program 
      Files\dotnet\shared\Microsoft.NETCore.App]
  </code></pre>
  
  <p>.csproj:</p>
  
  <pre><code> &lt;Project Sdk="Microsoft.NET.Sdk"&gt;
      &lt;Import Project="../../../../.build/build.props"&gt;&lt;/Import&gt;
      &lt;PropertyGroup Label="Globals"&gt;
      &lt;SccProjectName&gt;SAK&lt;/SccProjectName&gt;
      &lt;SccProvider&gt;SAK&lt;/SccProvider&gt;
       &lt;SccAuxPath&gt;SAK&lt;/SccAuxPath&gt;
       &lt;SccLocalPath&gt;SAK&lt;/SccLocalPath&gt;
       &lt;/PropertyGroup&gt;
        &lt;PropertyGroup&gt;
       &lt;OutputType&gt;Exe&lt;/OutputType&gt;
       &lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;
      &lt;ApplicationIcon /&gt;
      &lt;StartupObject&gt;MyService.Program&lt;/StartupObject&gt;
      &lt;LangVersion&gt;7.1&lt;/LangVersion&gt;
      &lt;Description&gt;MyService&lt;/Description&gt;
      &lt;AssemblyName&gt;MyService&lt;/AssemblyName&gt;
      &lt;ApplicationIcon /&gt;
      &lt;FileVersion&gt;1.0.0.$(BuildNumber)&lt;/FileVersion&gt;
      &lt;AssemblyVersion&gt;$(FileVersion)&lt;/AssemblyVersion&gt;
      &lt;/PropertyGroup&gt;
      &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Hosting" 
      Version="2.2.0" /&gt;
      &lt;PackageReference 
      Include="System.ServiceProcess.ServiceController" 
       Version="4.5.0" /&gt;
      &lt;/ItemGroup&gt;
      &lt;ItemGroup&gt;
     &lt;ProjectReference Include="..\My\Monitel.My.csproj" /&gt;
     &lt;/ItemGroup&gt;      
     &lt;/Project&gt;
  </code></pre>
  
  <p>So, if i change deploy to FrameworkDependent -it generated valid app.runtimeconfig.json.</p>
  
  <p>But, if i deploy and run Self-Contained - it generated empty parameters and i can not run exe file!
  It says, that needs hostpolicy dll.
  Why?</p>
  
  <p>And when i add <code>runtimeOptions</code>(Expected behavior section) to <code>app.runtimeconfig.json</code> file - my application works!</p>
  
  <p>So, why i can not generate valid <code>app.runtimeconfig.json</code> from self-contained publish settings?</p>