Configuring Deployment Settings

The next-to-last step in the Publish Wizard captures the build configuration that you want to deploy (for example, Release or Debug). Also, for each database connection used by the web application, it configures the corresponding connection string to use on the target server.

In the Contoso University sample application, two database connections are used: one called SchoolContext, and the other called ApplicationServices. If you look at Figure 11.7, you can see that the wizard shows us a section for each of these connections. Use the drop-down box to enter the connection string that the application should use on the target server (that is, the server on the receiving end of the publish operation).

FIGURE 11.7 ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.