Questions tagged [publish-profiles]
80 questions
1
vote
0 answers
Moving files outside of the project folder after deploying using a publish profile with msdeploy
I have two xml files in the root of my solution that need to be copied to the deploy folder's parent.
My website is being deployed to D:\test\website but I want to make an exception for 2 xml files that need to be relocated outside of this folder.…

William van Velzen
- 11
- 3
1
vote
0 answers
Visual Studio 2015 publish profile include single file
In Visual Studio 2015 ASP.NET MVC project I am using "File System" publish method for project publishing. Additionally I want to include custom JSON configuration file (settings_dev.conf) in publishing process. By default this file is not published…

Viktors Telle
- 763
- 9
- 22
1
vote
0 answers
Adding non refrenced dll in bin folder while publishing website
How to write code for copying dll and xml files from one folder to bin while publishing the website.Need to add few dll in published folder automatically which are not referenced in project Need to know the syntax for the same.

Sahil Gupta
- 13
- 1
- 8
1
vote
1 answer
Web Application Publish Profile: disable connection strings autogeneration
Is there a way to disable connection strings auto generation in publish profile?
I would like to generate package and SetParameters file with parameters specified in Parameters.xml only, without any connection strings.

Roman Kuzyk
- 241
- 3
- 15
1
vote
1 answer
Visual Studio 2010 Publish Profile Target Location with Relative Paths
How do I include relative paths in the publish profile of a web application in Visual Studio 2010?
For instance, my web app resides in a the folder structure: C:\Foo\MyWebApp\MyWebAppUI. I would like the output to be published to C:\Foo\MyWebApp.

asaenz
- 11
- 3
1
vote
1 answer
Failed to detect default target(s) in the project file with WebForms site
I'm trying to set up automated deployment of a Website (not web app) to a local test server.
Publishing from VS2013 works fine but trying to run it from TeamCity 8.1.4 (build 30168) with MSDeploy I keep getting the following error:
Failed to start…

JamesD
- 63
- 1
- 2
- 8
1
vote
1 answer
Visual studio publish profiles and its configurations
I'm trying to get a better understanding of visual studios build configurations.
I'm currently building out a webAPI.
I am also using team city for some automated build tasks and so I use a different profile for that instead of the debug profile…

Adam
- 388
- 1
- 10
1
vote
3 answers
TFS Build Server "Can't find the valid AspnetCompilerPath" for TeamBuild publishing a Website
I am having a problem with TFS2013 using a Team Build which does a build then a publish of a website.
Everything works fine when I do a Publish Web site from my dev machine using VS2013 and the (right-click) Publish Web site
option for the Web site…

Mike
- 111
- 2
- 6
1
vote
1 answer
Visual Studio 2013 Publish Disable "Preview"
When I'm in VS I occasionally want to rapidly push changes. When I go to the "publish" prompt it forces a preview window. See below. I have to explicitly press "publish" again. Is there anyway to just straight publish?
Also is there a keyboard…

aherrick
- 19,799
- 33
- 112
- 188
1
vote
2 answers
VS2012 publish profiles breaking TeamCity
I have deleted some old old publish profiles (including the one named 'Package') via the publish GUI in VS2012. When I check the code in and run a build via TeamCity I get the following error.
Rebuild MSBuild
trunk\SomeService\SomeService.csproj…

will webster
- 574
- 5
- 11
1
vote
0 answers
Visual Studio 2012 publish profiles
I have been doing some work recently with publishing mvc applications on visual studio 2012. I have been using publish profiles to configure web deploy to different environments. I have also been using web transforms to transform my web.config as…

amateur
- 43,371
- 65
- 192
- 320
0
votes
1 answer
How to deploy a react app on azure using publish profile with Visual Studio Code
How to deploy a react app on azure using publish profile with Visual Studio Code
deploy a react app on azure using publish profile with Visual Studio Code.
I have a publish profile and want to deploy the React/Nextjs app on azure using visual studio…

pio sankar
- 3
- 2
0
votes
1 answer
Create Publish Profile to Azure App Service, throw "The file Exists"
I'm trying to create publish profile to Azure App Service using Visual Studio 2022.
When I created App Service from vs publish dialog (clicking on plus sign button). It threw an error The file exists.
The same error happened when I had created App…

Ariwibawa
- 627
- 11
- 23
0
votes
1 answer
Creating publish profile for Azure SQL Database
I have an Azure SQL Database to which I am deploying using Azure DevOps pipelines. I want to specify a custom publish profile, but I am not successful in deploying the dacpac for the Azure SQL Database using a publish profile generated by Visual…

Maria Shahid
- 27
- 1
- 5
0
votes
0 answers
VS2019 move post build event to post publish event?
I'm having a hard time finding a way to only rename a file when publishing an application (using Visual Studio 2019). I had no issue doing this with a post-build event, but that actually changes the file in my project, and I just want the file…

Xorcist
- 3,129
- 3
- 21
- 47