Last post Apr 28, 2021 10:26 PM by bruce (sqlwork.com)
Apr 28, 2021 08:36 PM|cagson|LINK
I want a .NET Core Web API to be callable via localhost, out of the box, deployed (installed) on any client computer.
(NO INTERNET CONNECTION)
via msi installer:
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?
Apr 28, 2021 08:59 PM|mgebhard|LINK
Yes, it's possible.
Apr 28, 2021 09:01 PM|cagson|LINK
any helpful links?
thank you for the confirmation
Apr 28, 2021 09:08 PM|mgebhard|LINK
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...
Apr 28, 2021 09:14 PM|cagson|LINK
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
Apr 28, 2021 09:22 PM|mgebhard|LINK
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.
Apr 28, 2021 09:24 PM|cagson|LINK
it initially was. thanks bro, will do
Apr 28, 2021 10:26 PM|bruce (sqlwork.com)|LINK
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.