light star
light star

Reputation: 23

How to hosting Asp.Net 5 web api in Windows 10 iot core without Powershell

I published a web api on pi2 then run command ".\web.cmd" via Powershell remotely, but I want to make the site run automatically without using Powershell.

Is there another way to run my asp.net web api automatically?

.net core version

dnx-coreclr-win-arm.1.0.0-rc2-16357

commands

Microsoft.AspNet.Server.WebListener --server.urls=http://:5000/*

Upvotes: 2

Views: 489

Answers (1)

Pawel
Pawel

Reputation: 31620

You can use schtasks.exe to schedule a task to start when the system starts.

Upvotes: 2

Related Questions