The dotnet command-line tool makes it easy to deploy your application from the command line. It's also possible to publish from a build script or another automated tool. This video helps you understand the syntax of the dotnet publish command, and how to use it to publish your application to IIS without the IDE.
- [Instructor] Deploying to IIS via the command line…is a useful alternative to using visual studio,…especially if you want to script…or automate the deployment process.…The dotnet published rule makes it easy to deploy…an application using the command line or a script.…I'll demonstrate how to use this tool…from PowerShell to publish the application to IIS.…I've navigated to the project directory in PowerShell.…First I need to run dotnet restore…to restore any NuGet packages for the project.…And then dotnet build,…just to make sure that it'll build correctly.…
Now, I'll run dotnet publish,…and then with the -C Release parameter,…which will tell the application to build…and publish in release mode.…When the process is complete,…the binaries will be placed in the bin directory.…I can open up an explorer window to see where those landed.…If I open up bin,…Release,…netcoreapp 1.1,…which is the framework we're building on top of,…and then, the publish directory.…All of the files and libraries needed to run the application…
- Setting up your ASP.NET project
- Setting up IIS
- Creating an IIS site and app pool
- Publishing your app with Visual Studio or the command line
- Deploying to Azure
- Deploying to Linux
- Deploying with Docker
Skill Level Intermediate
1. Get Started
2. Deploying to IIS
3. Deploying to Azure
Get started with Azure1m 4s
4. Deploying to Linux
5. Deploying with Docker
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.