MSBuild target _CopyWebApplication does not copy all necessary files to the bin folder?

This is just a workaround In the build script for publishing Web sites, after running MSBuild on the Web project itself to publish it (Targets="ResolveReferences;_CopyWebApplication"), I added a copy operation: Copy SourceFiles="@(ProjectBinFiles)" DestinationFolder="$(StageBin)\%(ProjectBinFiles. RecursiveDir) where ProjectBinFiles is an Item representing the files in the bin directory in the source directory, and StageBin is a Property representing the bin folder in the published site's directory. So far, it seems to work.

This is just a workaround. In the build script for publishing Web sites, after running MSBuild on the Web project itself to publish it (Targets="ResolveReferences;_CopyWebApplication"), I added a copy operation: where ProjectBinFiles is an Item representing the files in the bin directory in the source directory, and StageBin is a Property representing the bin folder in the published site's directory. So far, it seems to work.

I have tried this on multiple projects, and it seems to work well. :) – apollodude217 May 21 '10 at 4:32 2 Must you define "ProjectBinFiles", "StageBin" variables? I need to try this but am unsure where to implement this in my task?

– Devtron Mar 2 at 22:36 Yes, those have to be defined prior to the Copy command. Alternatively, you can hard-code whatever you want those values to be. – apollodude217 Mar 4 at 22:54.

I was having a similar issue as well. I think the answer is using MSDeploy. Investigating it now, but may provide functionality required...

My team is not yet ready to switch anything over to VS 2010 or . NET 4, as we still have many applications still under VS 2005. – apollodude217 Apr 21 '10 at 18:13.

Instead of calling those targets a better approach is to use Web Deployment Projects(2005 version). Using WDPs is very easy, and its much easier to customize the process versus what you are doing now. I highly encourage you to take a look at employing that solution.

Thanks for your reply. Unfortunately, "Web Deployment Project compile all the contents of the Web Application project, this includes all files regardless if they are added to your projects or not. " -amiraryani.wordpress.Com/2008/11/06/….

This behavior is one of the reasons why my team switched from VS Web sites to WAPs to begin with, so WDP's will not work, unless there is a suitable workaround. – apollodude217 Apr 21 '10 at 18:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions