Skip to content

Visual Studio Publish Profiles

John Bales edited this page Nov 8, 2016 · 2 revisions

The following information describes how to create deployment profiles inside of Visual Studio so that you can publish the application and services to your local IIS to host and run locally. The reason for this is so that as a developer you know that when the application is deployed to a server it will operate as intended. Furthermore, so the relationship between the application and services as such that they communication properly. The profile names and deployment location can be whatever you desire.

Application Deployments

  1. Right click on the UI project
  2. Select Publish…
  3. With Profile selected on the left, select Custom under Select a publish target
  4. Enter a name for the Profile and click Ok. Example: Application
  5. With Connection selected on the left, select File System in the Publish Method drop down list
  6. Set the Target Location for where the compiled files will be deployed and click next. Example: C:\Projects\Deployments\Application
  7. With Settings selected on the left, select Debug in the Configuration drop down list
  8. Expand the File Publish Options section and check the following boxes and click next:
    1. Delete all existing files prior to publish
    2. Precompile during publishing
  9. With Preview selected on the left, you are now ready to publish the web application. Click Publish

Services Deployments

  1. Right click on the Services project
  2. Select Publish…
  3. With Profile selected on the left, select Custom under Select a publish target
  4. Enter a name for the Profile and click Ok. Example: Services
  5. With Connection selected on the left, select File System in the Publish Method drop down list
  6. Set the Target Location for where the compiled files will be deployed and click next. Example: C:\Projects\Deployments\Services
  7. With Settings selected on the left, select Debug in the Configuration drop down list
  8. Expand the File Publish Options section and check the following boxes and click next:
    1. Delete all existing files prior to publish
    2. Precompile during publishing
  9. With Preview selected on the left, you are now ready to publish the web application. Click Publish
Clone this wiki locally