Search code examples
installationasp.net-core-webapi

.Net Core 8.0 Web API installer closes immediately


I've create 2 project in a solution with VS2022.

  1. Weatherforecast web api (as provided by microsoft)
  2. Microsoft setup project extension (To create exe /msi for that).

To create this setup project what I tried is as below -

  1. Added project output as publish item.

Figure 1

I want to create locally shareable web api installer. I am able to install msi and run my web api locally on my laptop. But when I send this exe and try to install this, web api suddenly run and stop.


Solution

  • After testing in my local, I found the reason is missing .net runtime in your new machine.

    You can verify it by checking the EventViewer Logs.