knowdotnet
knowdotnet

Reputation: 925

Dotnet core 2.1 code build for Linux from Windows machine

I am creating a dotnet core 2.1 mvc application. I use win 10 as development machine but my prod server is Linux. Is it OK to Build it on Windows machine Or should I use a Linux box to build and then deploy on prod? Any execution or references or performance issues I might face?

Upvotes: 0

Views: 652

Answers (1)

skjagini
skjagini

Reputation: 3217

You cannot build on Windows and deploy the same on to Linux.

For eg: dotnet build --runtime ubuntu.16.04-x64

Look into the following on how to build specific to linux

Upvotes: 1

Related Questions