Skip to content

Commit ef17215

Browse files
committed
work
1 parent fbb35c9 commit ef17215

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

aspnetcore/host-and-deploy/visual-studio-publish-profiles.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,10 @@ Visual Studio's publish tool produces a `Properties/PublishProfiles/{PROFILE NAM
150150

151151
When publishing to an Azure target, the *.pubxml* file contains the Azure subscription identifier. With that target type, adding this file to source control is discouraged. When publishing to a non-Azure target, it's safe to check in the *.pubxml* file.
152152

153-
Sensitive information, for example, the publish password, is encrypted on a per user/machine level. The `Properties/PublishProfiles/{PROFILE NAME}.pubxml.user` file contains the information needed by MSBuild to retrieve the password.
153+
Sensitive information, for example, the publish password, is encrypted on a per user/machine level. The `Properties/PublishProfiles/{PROFILE NAME}.pubxml.user` file contains the information needed by MSBuild to retrieve the user name and password.
154154

155155
For an overview of how to publish an ASP.NET Core web app, see <xref:host-and-deploy/index>. The MSBuild tasks and targets necessary to publish an ASP.NET Core web app are open-source in the [dotnet/websdk repository](https://github.com/dotnet/sdk/tree/main/src/WebSdk).
156156

157-
<!-- Move to https://github.com/dotnet/sdk/tree/main/src/WebSdk -->
158157
`dotnet publish` and `dotnet build`:
159158

160159
* Can use folder, MSDeploy, and [Kudu](https://github.com/projectkudu/kudu/wiki) publish profiles. Because MSDeploy lacks cross-platform support, MSDeploy options are supported only on Windows.
@@ -370,8 +369,7 @@ For more deployment samples, see the [Web SDK README file](https://github.com/do
370369
## Run a target before or after publishing
371370

372371
The built-in `BeforePublish` and `AfterPublish` targets execute a target before or after the publish target. Add the following elements to the publish profile to log console messages both before and after publishing:
373-
zz
374-
[!code-xml[](visual-studio-publish-profiles/samples/Web1.pubxml?highlight=18-23)]
372+
375373
[!code-xml[](visual-studio-publish-profiles/samples/TP_before.pubxml?highlight=30-35)]
376374

377375
## Publish to a server using an untrusted certificate

aspnetcore/host-and-deploy/visual-studio-publish-profiles/samples/TP_before.pubxml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ by editing this MSBuild file. In order to learn more about this please visit htt
66
<Project>
77
<PropertyGroup>
88
<WebPublishMethod>MSDeploy</WebPublishMethod>
9-
<ResourceId>/subscriptions/a8a5e23a-c020-403d-9450-45d5a7b98628/resourcegroups/TP_RG/providers/Microsoft.Web/sites/TP22</ResourceId>
9+
<ResourceId>/subscriptions/SomeGuid/resourcegroups/TP_RG/providers/Microsoft.Web/sites/TP22</ResourceId>
1010
<ResourceGroup>TP_RG</ResourceGroup>
1111
<PublishProvider>AzureWebSite</PublishProvider>
1212
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
1313
<LastUsedPlatform>Any CPU</LastUsedPlatform>
1414
<SiteUrlToLaunchAfterPublish>https://tp22.azurewebsites.net</SiteUrlToLaunchAfterPublish>
1515
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
1616
<ExcludeApp_Data>false</ExcludeApp_Data>
17-
<ProjectGuid>3128b417-8530-4717-bd22-cd6021aa346e</ProjectGuid>
18-
<MSDeployServiceURL>tp22.scm.azurewebsites.net:443</MSDeployServiceURL>
19-
<DeployIisAppPath>TP22</DeployIisAppPath>
17+
<ProjectGuid>GuidHere</ProjectGuid>
18+
<MSDeployServiceURL>something.scm.azurewebsites.net:443</MSDeployServiceURL>
19+
<DeployIisAppPath>myDeploysIISpath</DeployIisAppPath>
2020
<RemoteSitePhysicalPath />
2121
<SkipExtraFilesOnServer>true</SkipExtraFilesOnServer>
2222
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
@@ -33,4 +33,4 @@ by editing this MSBuild file. In order to learn more about this please visit htt
3333
<Target Name="CustomActionsAfterPublish" AfterTargets="AfterPublish">
3434
<Message Text="Inside AfterPublish" Importance="high" />
3535
</Target>
36-
</Project>
36+
</Project>

0 commit comments

Comments
 (0)