Training
Certification
Microsoft Certified: Azure Developer Associate - Certifications
Build end-to-end solutions in Microsoft Azure to create Azure Functions, implement and manage web apps, develop solutions utilizing Azure storage, and more.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You can control how your web application gets deployed using the settings.
Visual Studio with the Web Development workload installed.
The Show all settings link appears after you run the Publish wizard to create a publish profile. The settings vary according to the type of deployment.
To view or change the settings, select the Show all settings link, or click on any of the pencil icons. The Settings page appears.
The following table describes the settings. Click on the links for more information.
Name | Profile types | Property | Description |
---|---|---|---|
Configuration | Folder, IIS | LastUsedBuildConfiguration |
The project build configuration to deploy, for example, Release . |
TargetFramework | Folder, IIS | TargetFramework |
The version of .NET that the app is targeted to run on. This is already set by the project, but you can change it for deployment. |
Deployment mode | Folder, IIS | none or SelfContained |
You can choose framework-dependent if you can depend on the runtime being available, or self-contained if you want to package the runtime with the application's publish artifacts. |
Target Runtime | Folder, IIS | The .NET Runtime ID (RID) for this deployment. | |
Server | IIS | MSDeployServiceURL |
The web server name, URI, or IP address. For example, localhost . |
Site name | IIS | Site | The site name in IIS, for example, Default Web Site . |
Username | IIS | UserName |
The username you will use to access the site in IIS. |
Password | IIS | UserPWD |
The first time you publish, you create a password that you will use to publish the site. The password can't be changed in Visual Studio, but it can be changed in IIS or in Azure. If you don't know the password, you can get it by downloading the .publishsettings file. See Import publish settings from IIS and Import publish settings from Azure. |
Save password checkbox | IIS | _SavePWD |
If checked, saves the password as plain text in the .pubxml file. |
Destination URL | IIS | SiteURLToLaunchAfterPublish |
The URL that launches the app, for example, http://localhost/projectname . If the IIS configuration for the web site exposes the site on a specific port in its bindings settings, include that as in http://localhost:nnnn/projectname . This is optional and only provides a convenient link on the Publish page, and is used to launch the site after a successful publish. |
Enable ReadyToRun compilation | Folder | PublishReadyToRun |
ReadyToRun is a form of Ahead-of-time (AOT) compilation. It can reduce latency by avoiding Just-in-time (JIT) compilation at runtime. |
Trim unused code | Folder | PublishTrimmed |
Minimizes the size of a self-contained deployment. |
Produce single file | Folder | PublishSingleFile |
An option that allows the published application to be distributed in a single file. |
Remove additional files at destination | IIS | SkipExtraFilesOnServer |
To preserve added files, uncheck the box. |
Delete all existing files prior to publish. | FTP | DeleteExistingFiles |
Uncheck this to preserve unrelated files at the destination, or check this to start with a clean deployment to the folder. |
Package location | IIS WebDeploy Package | DesktopBuildPackageLocation |
A local filesystem path to place the output package. |
The settings are persisted in the .pubxml
file. The .pubxml
file is an MSBuild input file. You can edit the file to further customize the deployment. See MSBuild.
Training
Certification
Microsoft Certified: Azure Developer Associate - Certifications
Build end-to-end solutions in Microsoft Azure to create Azure Functions, implement and manage web apps, develop solutions utilizing Azure storage, and more.
Documentation
Deploy your Visual Studio app to a folder, IIS, Azure, or another destination
Learn more about publishing options for your app using the Publish tool.
Publish an ASP.NET web app - Visual Studio (Windows)
Use the Publish tool in Visual Studio to deploy ASP.NET and ASP.NET Core apps to local web servers like IIS or remote cloud environments like Azure App Service.
Publish to IIS by importing publish settings - Visual Studio (Windows)
Create and import a publishing profile (.pubxml file) to deploy ASP.NET and ASP.NET Core web applications from Visual Studio to IIS.