|
MSBuild
Web Application Publish
Prerequisites
usually "C:\Program Files\MSBuild" along with the YUICompressor so...
you don't have to, if you don't, make sure you alter the script for the new locations UsageCopy the following to you project file and fill in the properties (example PublishPath and PublishFTPRoot) <Import Project="$(MSBuildExtensionsPath)\Antix\Antix.WebApplication.Publish.targets" />
<Target Name="AfterBuild">
<PropertyGroup>
<PublishPath>P:\$(MSBuildProjectName)\$(BuildVersion)</PublishPath>
<PublishFtpHost>127.0.0.1</PublishFtpHost>
<PublishFtpRoot>$(MSBuildProjectName)/$(BuildVersion)</PublishFtpRoot>
<PublishFtpUser></PublishFtpUser>
<PublishFtpPassword></PublishFtpPassword>
</PropertyGroup>
<MSBuild Projects="$(MSBuildProjectFile)" Targets="Publish"
Properties="PublishPath=$(PublishPath);PublishFtpHost=$(PublishFtpHost);PublishFtpRoot=$(PublishFtpRoot);PublishFtpUser=$(PublishFtpUser);PublishFtpPassword=$(PublishFtpPassword);" />
</Target>to do this ...
existing imports look like this; <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" /> From then on all you need to is step 6. and edit the version.txt file to set the version required | ||||||
► Sign in to add a comment