dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.57k stars 25.3k forks source link

Publish Profile is lacking reference information #32721

Open tbenbrahim opened 4 months ago

tbenbrahim commented 4 months ago

Description

I could not find any reference information in this article. Particularly, I am looking for the valid properties in PropertyGroup, if I were to write a publishing profile by hand, and not relying on VS.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/visual-studio-publish-profiles?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/visual-studio-publish-profiles.md

Document ID

2db330b4-e830-715f-0a15-e406f85e1d3b

Article author

@tdykstra

Rick-Anderson commented 3 months ago

Here's what CoPilot suggests. I'll look for a definitive link, but maybe this list will help: Common Properties

Here is an example of a .pubxml file illustrating some of these properties `

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http `//schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PublishUrl>ftp `//ftp.example.com/website/</PublishUrl>
    <PublishProvider>FTP</PublishProvider>
    <PublishMethod>FTP</PublishMethod>
    <SiteUrlToLaunchAfterPublish>http `//www.example.com</SiteUrlToLaunchAfterPublish>
    <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
    <LastUsedPlatform>AnyCPU</LastUsedPlatform>
    <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
    <ExcludeApp_Data>False</ExcludeApp_Data>
    <EnableMSDeployAppOffline>True</EnableMSDeployAppOffline>
    <MSDeployServiceURL>https `//msdeploy.example.com</MSDeployServiceURL>
    <DeployIisAppPath>Default Web Site/MyApp</DeployIisAppPath>
    <UserName>ftpuser</UserName>
    <Password>ftppassword</Password>
    <AllowUntrustedCertificate>False</AllowUntrustedCertificate>
    <DeployOnBuild>True</DeployOnBuild>
    <Configuration>Release</Configuration>
    <TargetFramework>net5.0</TargetFramework>
    <SelfContained>False</SelfContained>
  </PropertyGroup>
</Project>