msbuild-wpp

Publishing vs2012 solution from TeamCity

时间秒杀一切 提交于 2019-12-29 18:39:30
问题 I'm using Visual Studio 2012 and the publishing feature. I have created a publishing profile that deploys my application to a development server, and it works great when executed from vs2012 on my machine. Here is my problem; on the development server I also have TeamCity installed and I would like to trigger the publishing after a build have completed. So I created a simple build step that looks like this: Build file path: .\src\Solution.sln Targets: Rebuild Command line parameters: /p

Publishing vs2012 solution from TeamCity

可紊 提交于 2019-12-29 18:39:02
问题 I'm using Visual Studio 2012 and the publishing feature. I have created a publishing profile that deploys my application to a development server, and it works great when executed from vs2012 on my machine. Here is my problem; on the development server I also have TeamCity installed and I would like to trigger the publishing after a build have completed. So I created a simple build step that looks like this: Build file path: .\src\Solution.sln Targets: Rebuild Command line parameters: /p

Different connection string for each publish profile in VS2010

末鹿安然 提交于 2019-12-19 03:25:16
问题 Is it possible to change connection string (or just server host) relying on selected web publish profile? Maybe using Web.config transform or someway else? I mean for profile "Test" change connection string "MyConnString" (in published Web.config) to "Data Source='example.com,14333;..." and for profile "Production" - to "Data Source=./SQLExpress;..." 回答1: This is exactly what web config transforms were created for. The link you provided in your post has a walkthrough of doing this

VS2010 Web Publish command line version of File System deploy

匆匆过客 提交于 2019-12-17 23:36:10
问题 Folks, In a nutshell, I want to replicate this dialog: It's a Visual Studio 2010 ASP.Net MVC project. If I execute this command, I get all the files I want, including the transformed web.configs in the "C:\ToDeploy" directory. I want to replicate this on the command line so I can use it for a QA environment build. I've seen various articles on how to do this on the command line for Remote Deploys, but I just want to do it for File System deploys. I know I could replicate this functionality

msdeploy cannot reach destination despite having web deployment service started

不想你离开。 提交于 2019-12-13 16:22:54
问题 as you can see from the title I am experiencing some trouble deploying to a remote IIS. Here is what I have done so far: I have set up a virtual machine running an IIS7 on Windows Server 2008. I have bridged the VMs network adapter. I have installed and started the "Web Deployment Agent Service" as well as the "Web Management Service". I also created a new IIS manager user and granted him access to the website in question. Now deploying itself works when I do it like this for example: msbuild

What is the purpose of Binaries\_PublishedWebsites directory under TFS build

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 15:04:18
问题 TFS generates a publish directory under the build agent working directory: Z:\TFSBuilds\1\box\CT\Binaries\\_PublishedWebsites I am supposing that this is where TFS is automatically publishing the site. How can I use it for auto publishing of sites... as Should we refer our IIS website to this directory. What is the purpose of it? 回答1: Firstly, the working directory is as the name says, a "working" directory. That is where the build agent downloads the source, perform compiles etc. It also

pubxml web publish tool Event Lifecycle

白昼怎懂夜的黑 提交于 2019-12-07 05:30:20
问题 I am using the Web publishing tool from Visual Studio 2012 to publish to File System. I learned that I can open my *.pubxml in the Properties folder to do more advanced things. What I want to do is run a command line application at the end of the publishing task. I would usually do it in a Custom Target and execute it after one of the build in Events like this. <Target Name="CustomAfterPublish" AfterTargets="GatherAllFilesToPublish"> </Target> The problem is that GatherAllFilesToPublish is

pubxml web publish tool Event Lifecycle

孤街醉人 提交于 2019-12-05 10:35:26
I am using the Web publishing tool from Visual Studio 2012 to publish to File System. I learned that I can open my *.pubxml in the Properties folder to do more advanced things. What I want to do is run a command line application at the end of the publishing task. I would usually do it in a Custom Target and execute it after one of the build in Events like this. <Target Name="CustomAfterPublish" AfterTargets="GatherAllFilesToPublish"> </Target> The problem is that GatherAllFilesToPublish is way to early because I want to execute it at the very last, after publishing was done. Is there a list or

Different connection string for each publish profile in VS2010

谁都会走 提交于 2019-11-30 21:25:35
Is it possible to change connection string (or just server host) relying on selected web publish profile? Maybe using Web.config transform or someway else? I mean for profile "Test" change connection string "MyConnString" (in published Web.config) to "Data Source='example.com,14333;..." and for profile "Production" - to "Data Source=./SQLExpress;..." This is exactly what web config transforms were created for. The link you provided in your post has a walkthrough of doing this specifically for connection strings. To start with the transforms, right-click your web.config file in the project

MSBuild - Project-specific targets for solution does not work

混江龙づ霸主 提交于 2019-11-28 18:17:18
I have a solution that has multiple projects in it, including a web application. I want MSBuild to execute "WebPublish" target against the web application project and "default target" for all other projects in the solution. This MSDN article says that I can do it specifying the command line msbuild SlnFolders.sln /t:NotInSlnfolder:Rebuild;NewFolder\InSolutionFolder:Clean But I never could make it work - MSBuild return an error, something like "NotInSlnFolder:Rebuild" target does not exist. It does not matter what target to specify, Build, Rebuild or Clean - it does not work in any case. How