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).