Packaging/running an .NET Core Web API with an Desktop Application (Windows) on any machine? RRS feed

  • Question

  • User-1549886741 posted

    I want a .NET Core Web API to be callable via localhost, out of the box, deployed (installed) on any client computer.


    via msi installer:

    1. Install legacy WPF application
    2. Install and start running an .NET (5) Core Web API as a localhost server running off any port

    The API must work on any Windows environment, right after install. No client interaction for downloads etc, other than to provide permission to modify the environment as needed.

    Is this possible?

    Wednesday, April 28, 2021 8:36 PM

All replies

  • User475983607 posted

    Yes, it's possible.

    Wednesday, April 28, 2021 8:59 PM
  • User-1549886741 posted

    any helpful links?

    thank you for the confirmation

    Wednesday, April 28, 2021 9:01 PM
  • User475983607 posted

    any helpful links?

    Your question is too open to answer.  What do you need help with?  Building an installer?  Creating a Web API application?  WPF?  Configuring IIS?  

    Perhaps explain what you have done so far...

    Wednesday, April 28, 2021 9:08 PM
  • User-1549886741 posted

    Silent installation of either nginx or IIS (preferably nginx), and how to start the release web API on that server when it gets installed as well

    The web API is already made... so I guess the first step would be figuring out how to start+install the web server on installation via the msi GUI. next step is to start the actual web API on a port

    Wednesday, April 28, 2021 9:14 PM
  • User475983607 posted

    Probably the best for you do do right now is read the Web API deployment docs.  You need the .NET 5 runtime installed.  Port configuration is done through the host service you decide to use.  Read the docs for service and run the appropriate command lines.  

    I'm sure how this is a ASP.NET Core question.

    Wednesday, April 28, 2021 9:22 PM
  • User-1549886741 posted

    it initially was. thanks bro, will do

    Wednesday, April 28, 2021 9:24 PM
  • User-474980206 posted

    why use nginx or IIS. just have the desktop app start the core webapi app via create process passing the port number on the commandline. the desktop app can either scan for a free port, or one is assigned during install via the install toolkit chosen.

    Wednesday, April 28, 2021 10:26 PM