简体   繁体   中英

What is the difference between dotnet build and dotnet publish commands?

I am a little confused regarding do.net build vs do.net publish topic. When I say difference, I mean what is the physical difference among them. I see that do.net build generates the same files as do.net publish unless it is self-contained.

do.net build will generate dll files in folder bin in your local project folder

do.net publish will build, generate dll files and deploy in where you want.

For example, you can deploy to a hosting provider, to a file folder on your.network (you can manually copy from there to a folder used by IIS), to IIS on your development computer as a testing environment, to a server on your company's internal.network .

Read more "How to: Deploy a Web Project Using One-Click Publish in Visual Studio" : https://learn.microsoft.com/en-us/previous-versions/as.net/dd465337(v=vs.110)?redirectedfrom=MSDN

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM