• \..\artifacts\bin\Employees.WebAPI\Release\Publish
  • wwwroot
  • Creating Web api using asp. Net mvc 6 Introduction




    Download 2,23 Mb.
    bet9/16
    Sana20.03.2020
    Hajmi2,23 Mb.
    #8262
    1   ...   5   6   7   8   9   10   11   12   ...   16
    Ctrl+Shift+B to make sure there is no build error.

    Run this project by clicking F5, It will open a page

    Publish Web API from Visual Studio 2015

    We have successfully created a web API project for handling the simple CRUD operation on Employee information.

    Now we will learn how to publish this created API using visual studio in order to host it on IIS. To publish the API, you can follow the below steps.

    1. In Solution Explorer, right-click the project (here Employees.WebAPI) and select Publish.



    1. In the Publish Web dialog, on the Profile tab, select File System.



    1. Enter a profile name. Click Next.

    2. On the Connection tab, you can change the publishing target path from the default ..\..\artifacts\bin\Employees.WebAPI\Release\Publish folder to any folder. Click Next.

    3. On the Settings tab, you can select the configuration, choose the target DNX version, and publish options. Click Next.

    4. Once the Publish successfully completed, it will create three folders like below image. Among these folders, we need to use wwwroot folder to point in our IIS on configuration.



    1. No our application is ready to be hosted in IIS.

    Download 2,23 Mb.
    1   ...   5   6   7   8   9   10   11   12   ...   16




    Download 2,23 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Creating Web api using asp. Net mvc 6 Introduction

    Download 2,23 Mb.