SmartestVEGA
SmartestVEGA

Reputation: 8889

Hosting .net API in linux box

I have created few APIs in C# (.net framework 4.5.2) (Not .net core ..i hope) , which is published from visual studio and hosted Windows Server IIS server . It is up and running fine.

Now can i put the same api published file in Linux wwwroot folder,

will it work?

Upvotes: 0

Views: 70

Answers (1)

mm8
mm8

Reputation: 169150

.NET Framework is Windows-only. .NET Core is cross-platform. So your app should target .NET Core for you be able to run it on Linux.

Download the .NET Core SDK and try to create a new project using the command-line interface (CLI) tools. You could also use Visual Studio 2017 15.7 or newer to create .NET Core 2.1 apps.

Upvotes: 1

Related Questions