Deployment/publish issues

  • Thread starter Thread starter GaryDean
  • Start date Start date
G

GaryDean

Regardless if I use the Publish feature of vs2005 or the addin Web
Deployment Project I can't seem to get the necessary files deployed. For
instance my bin directory has several .licx files but neither tool is smart
enough to deploy those files so I have to copy them manually after
deployment.

Also, I would like to install the necessary Crystal dlls onto the target
server but there seems no place to specify additional files to deploy.

How can I get either Publish or Web Deployment to copy the files necessary
to deploy the site?
 
Hi Gary,

The Web Application Project or Web Deployment Project file is msbuild
project file, therefore it can be modified to include custom action to copy
additional files.

1) Right-click on your Web Deployment Project in Solution Explorer, select
"Open Project File", this will open the xml source of the project file

2) Before the closing tag </Project>, add following content:

<ItemGroup>
<LicenseFiles
Include="$(SourceWebPhysicalPath)\Bin\*.licx"></LicenseFiles>
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(LicenseFiles)"
DestinationFolder="$(OutputPath)Bin">
</Copy>
</Target>


This will copy all *.licx files from your source web site's Bin
subdirectory to the destination folder's Bin subdirectory.

Hope this helps.

Here's some documents for your reference:

#ScottGu's Blog : VS 2005 Web Application Projects, MSBuild, and Continuous
Integrations
http://weblogs.asp.net/scottgu/archive/2006/06/02/VS-2005-Web-Application-Pr
ojects_2C00_-MSBuild_2C00_-and-Continuous-Integrations.aspx

#Copy Task
http://msdn2.microsoft.com/en-us/library/3e54c37h.aspx



Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Gary,

What do you think of above suggestion? Please feel free to let me know if
there's anything else I can help.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top