Questions tagged [pubxml]

30 questions
12
votes
1 answer

VS2015 pubxml: how to exclude or eliminate the section

I need to exclude database related settings from the Web Deploy publishing. I tried to delete the section in the pubxml file, but it comes back when I create a deployment package. Is there any way way to exclude database related settings from the…
Allan Xu
  • 7,998
  • 11
  • 51
  • 122
6
votes
1 answer

Execute .bat file at end of VS2017 Asp.Net Core publish action?

In Visual Studio 2017 when publishing an Asp.Net Core Website using the File System publish method I want to trigger the execution of a .bat file after the publish operation copied the files to the output directory. I have learned that the settings…
RonC
  • 31,330
  • 19
  • 94
  • 139
4
votes
1 answer

Using Azure Predefined Variable in a .pubxml file in Azure YAML Pipeline

I have a YAML pipeline that builds & publishes a cs project. I have tried to put a predefined variable in the publish profile however it is throwing an error. I would like the published files to be put into the $(Build.ArtifactStagingDirectory)…
Ross
  • 2,463
  • 5
  • 35
  • 91
4
votes
1 answer

How do I configure "appOfflineTemplate" in a publish profile (.pubxml)?

WebDeploy 3.5 supports customizing App_Offline.html via an App Offline Template option to msdeploy. Example: msdeploy.exe -verb:sync -source:iisApp=sourceApp -dest:iisApp=destApp,appOfflineTemplate="App_offline-template.htm"…
mlhaufe
  • 352
  • 2
  • 12
4
votes
0 answers

How do I encrypt web.config connection strings during deployment from the command line, specifying the encryption provider?

I know I can do this to encrypt connection strings in a web site that is already deployed: aspnet_regiis -pe connectionStrings I can also encrypt connection strings in a web site before it is deployed by doing this: aspnet_regiis -pef…
Daniel
  • 155
  • 1
  • 8
4
votes
1 answer

<_CustomFiles> element not recognized in .pubxml

I'm trying to include a file in an ASP.NET filesystem publish that's not included in the solution (it's autogenerated from a post-build script). According to these instructions, I should be able to add a reference to the file in my .pubxml…
Nathan Friend
  • 12,155
  • 10
  • 75
  • 125
3
votes
2 answers

For DevOps Release, how to config pubxml and password to deploy to Azure App Service?

In Devops. I'm trying to deploy a project in to Azure web app. How to use publish profile password? The help message doesn't give me any help too...
3
votes
0 answers

Is there a pubxml setting to delete folder on production prior to publishing using Visual studio

I am deploying visual studio project that contains Angular 5 application that is built in dist subfolder. Because dist subfolder is not a part of the project, I am copying it using the publishing profile settings (in .pubxml file):
2
votes
0 answers

How do I prevent Visual Studio 2019 from publishing one of my appsettings.{environment}.json files

I have tried about twenty solutions I have found online on how to prevent appsettings.{somevalue}.json from being published with the wrong environment. Basically I have a "development" variant and "production" variant and both are set to Copy If…
Shubius
  • 23
  • 4
2
votes
0 answers

Visual Studio 2019 - Publish Profile problem

Seems like the most recent update in visual studio 2019 changed something that forces you to pick a publish profile before publishing a file. For instance, I have a web developer who often publishes .cshtml files to a website - we only have one…
Mani5556
  • 394
  • 2
  • 12
  • 33
2
votes
1 answer

Override publish folder (url) of publish profile during the build pipeline

We have one ASP.Net solution with several projects. each project have build.pubxml with unique folder path. For example: In project Test we have this line inside the build.pubxml: C:\publish\SolutionName\Test In project…
Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114
2
votes
1 answer

How to deploy website using visual publish profile and Cake script

I would like to use Cake script to automate my build and publish process. I started some tests with local publish but I was unable to make my Cake script to use publish profile that I've created in Visual Studio. Is it possible at all? Here is my…
2
votes
3 answers

Visual Studio 2017 - Not Able to see Publish Profiles

In my VS 2017, my publish profile is not being listed in the publish section of the VS 2017. I can run the application with no error but I can't publish it or see and log file saying any error about when I do right click the project and click on…
hma
  • 556
  • 2
  • 11
  • 29
2
votes
1 answer

How can I override a pubxml setting via command line in automated deployment scenario?

When publishing a web application with msbuild command line utility, I specify a publish profile name like "dev", which corresponds to the "dev.pubxml" file in the project's Properties/PublishProfiles directory. The file contains setting for…
Triynko
  • 18,766
  • 21
  • 107
  • 173
2
votes
1 answer

Correct tags in PUBXML not recognized by intellisense

I've noticed that in my PUBXML file, the first element is underlined by a blue wave. When I removed it and tried to enter it, I noticed that intellisense didn't recognize it. I've checked with MSDN about PUBXML files and it seems to be correct. I…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
1
2