O'Reilly logo

C# 7 and .NET Core Cookbook by Dirk Strauss

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Open up Command Prompt by running it as administrator. In Command Prompt, go to the src\AspNetCore directory of your project. Ensure that you have a folder called publish in your temp folder on the C:\ drive of your computer, then type in the following command, and press Enter. This will build and publish your project:
        dotnet publish --output "c:temppublish" --configuration release
Depending on what you called your ASP.NET Core application, the folder name under your src folder will be different to what mine is.
  1. After the app has been published you will see the published files along with all their dependencies in the output ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required