title: .NET Core Angular 7 Server Side Rendering
body: <p>I'm trying to create a Angular 7 SSR using dotnet core to host it, the default template uses angular 5 and MS have documentation to get SSR running on that (which works fine) I have tried upgrading via a command line to angular 7 and start a new angular project and implement the SSR after but I always end up at the same issue, both ng build and ng build:SSR work fine from command line but when I come to run it from VS it times out (which I think has nothing to do with the issue) after it throws an error:</p>
  
  <pre><code>The thread 0x6608 has exited with code 0 (0x0).
  The thread 0x1134 has exited with code 0 (0x0).
  The thread 0x54bc has exited with code 0 (0x0).
  </code></pre>
  
  <p>The changes I made from NG5 SSR (<a href="https://go.microsoft.com/fwlink/?linkid=864501" rel="nofollow noreferrer">https://go.microsoft.com/fwlink/?linkid=864501</a>) 
  following this (<a href="https://github.com/aspnet/Templating/issues/593" rel="nofollow noreferrer">https://github.com/aspnet/Templating/issues/593</a>) are:</p>
  
  <p>startup.cs </p>
  
  <pre><code>options.BootModulePath = $"{spa.Options.SourcePath}/dist-server/main.bundle.js";
  </code></pre>
  
  <p>to</p>
  
  <pre><code>options.BootModulePath = $"{spa.Options.SourcePath}/dist-server/main.js";
  </code></pre>
  
  <p>Added the SSR project again to angular.json</p>
  
  <pre><code> "ssr": {
        "root": "",
        "sourceRoot": "src",
        "projectType": "application",
        "architect": {
          "build": {
            "builder": "@angular-devkit/build-angular:server",
            "options": {
              "outputPath": "dist-server",
              "main": "src/main.server.ts",
              "tsConfig": "src/tsconfig.server.json"
            },
            "configurations": {
              "production": {
                "optimization": false,
                "outputHashing": "media",
                "sourceMap": false,
                "namedChunks": false,
                "extractLicenses": true,
                "vendorChunk": false,
                "bundleDependencies": "all",
                "fileReplacements": [
                  {
                    "replace": "src/environments/environment.ts",
                    "with": "src/environments/environment.prod.ts"
                  }
                ]
              }
            }
          }
        }
      }
  </code></pre>
  
  <p>Change build:ssr within package.json scripts</p>
  
  <pre><code>"build:ssr": "ng build --configuration=production --project=ssr",
  </code></pre>
  
  <p>Code im running - <a href="https://github.com/TPJ11/DotnetNG7SSR" rel="nofollow noreferrer">https://github.com/TPJ11/DotnetNG7SSR</a></p>
  
  <p>Has anyone got any idea what i'm doing wrong? feel like I've been banging my head against a wall on this :( </p>