Microsoft.Web.Publishing.Deploy.FTP.targets 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!--
  2. ***********************************************************************************************
  3. Microsoft.Web.Publishing.Deploy.FTP.targets
  4. WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
  5. created a backup copy. Incorrect changes to this file will make it
  6. impossible to load or build your web deploy projects from the command-line or the IDE.
  7. This file defines the steps in the standard package/publish process for Deploy
  8. Currently
  9. Copyright (C) Microsoft Corporation. All rights reserved.
  10. ***********************************************************************************************
  11. -->
  12. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  13. <!--Import task from our dll-->
  14. <UsingTask TaskName="GetPublishingLocalizedString" AssemblyFile="..\Microsoft.Web.Publishing.Tasks.dll"/>
  15. <!--Append WebFTPPublish to the supported list.-->
  16. <PropertyGroup>
  17. <_WPPWebPublishMethodSupports>$(_WPPWebPublishMethodSupports);WebFTPPublish</_WPPWebPublishMethodSupports>
  18. </PropertyGroup>
  19. <!--********************************************************************-->
  20. <!--Target WebFTPPublish -->
  21. <!--Current this is not supported through the command line, show the error message.-->
  22. <!--********************************************************************-->
  23. <PropertyGroup>
  24. <WebFTPPublishDependsOn>
  25. $(OnBeforeWebFTPPublish);
  26. $(WebFTPPublishDependsOn);
  27. </WebFTPPublishDependsOn>
  28. </PropertyGroup>
  29. <Target Name="WebFTPPublish"
  30. DependsOnTargets="$(WebFTPPublishDependsOn)"
  31. Condition="'$(WebFTPPublish)' != 'False'">
  32. <!--This is not yet implemented through the command line for Log the error -->
  33. <GetPublishingLocalizedString
  34. ID="PublishLocalizedString_WebPublishMethodIsNotSupportedInCmdLine"
  35. ArgumentCount="1"
  36. Arguments="$(WebPublishMethod)"
  37. LogType="Error" />
  38. <Error Text ="Target WebFTPPublish Failed" />
  39. <CallTarget Targets="$(OnAfterWebFTPPublish)" RunEachTargetSeparately="False" />
  40. </Target>
  41. <!--ImportAfter Extension-->
  42. <PropertyGroup>
  43. <ImportByWildcardAfterMicrosoftWebPublishingDeployFTPTargets Condition="'$(ImportByWildcardAfterMicrosoftWebPublishingDeployFTPTargets)'==''">true</ImportByWildcardAfterMicrosoftWebPublishingDeployFTPTargets>
  44. </PropertyGroup>
  45. <Import Project="$(MSBuildThisFileDirectory)\$(MSBuildThisFileName)\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftWebPublishingDeployFTPTargets)' == 'true' and exists('$(MSBuildThisFileDirectory)\$(MSBuildThisFileName)\ImportAfter')"/>
  46. </Project>