publish-profiles

MsDeploySkipRules in wpp.targets not working with PublishProfiles

六眼飞鱼酱① 提交于 2020-01-13 05:15:07
问题 I am publishing my MVC project with the PublishProfile through visual studio, (through UI, right click project, publish) and ticking the option to clear the destination folder. But I do not want a specific folder "Downloads" to be cleared I have spent countless hours trying to make this work, I think I have the exact same code as the person explained here but it still deletes the Downloads folder Also as example in the below I have the ExcludeFromPackageFiles of "favicon" which works if I

Publish Profile Encryption

爱⌒轻易说出口 提交于 2019-12-25 01:33:23
问题 I want to encrypt my connection string and app settings. Currently, I have multiple publish profiles with each profile having it's transform. Below is my pubxml file code but for some reason my target with exec command is not getting triggered. Can some one familiar with the subject matter please help!! Thank You in advance. <project toolsversion="4.0" xmlns="http://schemas.microsoft.co..."> <propertygroup> <webpublishmethod>FileSystem</webpublishmethod> <lastusedbuildconfiguration>Release<

How to Apply Transforms to SSDT publish profiles

北慕城南 提交于 2019-12-18 09:04:52
问题 Using Visual Studio 2013 I have a set of 8 SSDT projects that can all be deployed to several distinct environments. The advanced publish settings for each project, however, are meant to be identical. At present I have created a distinct publish profile for each environment, meaning I have ~20 publish profiles all using the exact same settings but different connection strings. Tweaking the publish settings (which happens with some regularity as I am still a bit new to SSDT) for my databases is

How can I update ASP.NET Core app over an existing/running site without stopping the web server?

左心房为你撑大大i 提交于 2019-12-13 11:55:34
问题 We have an ASP.NET Core site running on our test server that we would like to auto-deploy by XCopy to our IIS web server as we do our current apps, where I already have the site running. I've added a publish profile that packages the site to a "publish-local" directory within the solution. Whenever I try to copy over the existing site, all DLLs are being used by another process, presumably Kestrel, so I am forced to deploy to a sibling directory and re-map IIS to look at the sibling. How does

Web Config Transforms are HTML Encoding some of the config and breaking it

别来无恙 提交于 2019-12-11 19:42:14
问题 I have the following: Web.Config (this is a segment of an NLog configuration) <target name="fileAsException" xsi:type="FilteringWrapper" condition="length('${exception}')>0"> ... removed ... </target> This is translated to the following when built with release: <target name="fileAsException" xsi:type="FilteringWrapper" condition="length('${exception}')>0"> ... removed ... </target> As you can see the condition expression has been HTML Encoded resulting in the > replacing the > . This causes

Publish Profile not working when building website project

試著忘記壹切 提交于 2019-12-10 02:30:14
问题 I recognized that Web Deployment Projects are not supported in Visual Studio 2012 . After reading this article, I tried to get Publish Profiles to work. After installing Visual Studio Web Publish Update I was able to publish web site projects and web application projects with the new publish dialog in Visual Studio 2012 . Because we are using TFS 2010 Team Build I tried to use publish profile via MSBuild parameters. But the following statement only works to publish web application projects.

How to limit webdeploy connection number, ERROR_EXCEEDED_MAX_SITE_CONNECTIONS

99封情书 提交于 2019-12-08 08:12:23
问题 I have a solution that has 10-20 web projects, and I am trying to use msbuild webdeploy to deploy them. msbuild "mysolution.sln" /p:DeployOnBuild=true /p:PublishProfile="Debug" However, I got this error in the middle of deploy: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4295,5): msdeploy error ERROR_EXCEEDED_MAX_SITE_CONNECTIONS: Web deployment task failed. (The maximum number of connections for this site has been exceeded. In the log,

How can I extend my publish profile to deploy to multiple locations?

帅比萌擦擦* 提交于 2019-12-06 20:40:20
问题 The following is the generated publish profile for my dev environment: <?xml version="1.0" encoding="utf-8"?> <!-- This file is used by the publish/package process of your Web project. You can customize the behavior of this process by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121. --> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem<

Publish Profile not working when building website project

落花浮王杯 提交于 2019-12-05 02:11:54
I recognized that Web Deployment Projects are not supported in Visual Studio 2012 . After reading this article , I tried to get Publish Profiles to work. After installing Visual Studio Web Publish Update I was able to publish web site projects and web application projects with the new publish dialog in Visual Studio 2012 . Because we are using TFS 2010 Team Build I tried to use publish profile via MSBuild parameters. But the following statement only works to publish web application projects. MSBuild.exe MyWebs.sln /p:Configuration=Release /p:DeployOnBuild=true;PublishProfile=DeployToDirectory

MsDeploySkipRules in wpp.targets not working with PublishProfiles

一个人想着一个人 提交于 2019-12-04 12:48:06
I am publishing my MVC project with the PublishProfile through visual studio, (through UI, right click project, publish) and ticking the option to clear the destination folder. But I do not want a specific folder "Downloads" to be cleared I have spent countless hours trying to make this work, I think I have the exact same code as the person explained here but it still deletes the Downloads folder Also as example in the below I have the ExcludeFromPackageFiles of "favicon" which works if I deselect the deletion of the destination folder (just to show that my wpp targets is in fact running).