Microsoft.Web.Publishing.OnlyFilesToRunTheApp.targets 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <!--
  2. ***********************************************************************************************
  3. Microsoft.Web.Publishing.OnlyFilesToRunTheApp.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 collecting only files to run the web appliation.
  8. Copyright (C) Microsoft Corporation. All rights reserved.
  9. ***********************************************************************************************
  10. -->
  11. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  12. <!--Import task from our dll-->
  13. <UsingTask TaskName="GetPublishingLocalizedString" AssemblyFile="..\Microsoft.Web.Publishing.Tasks.dll"/>
  14. <UsingTask TaskName="FilterByItems" AssemblyFile="..\Microsoft.Web.Publishing.Tasks.dll"/>
  15. <!--ImportBefore Extension-->
  16. <PropertyGroup>
  17. <ImportByWildcardBeforeMicrosoftWebPublishingOnlyFilesToRunTheAppTargets Condition="'$(ImportByWildcardBeforeMicrosoftWebPublishingOnlyFilesToRunTheAppTargets)'==''">true</ImportByWildcardBeforeMicrosoftWebPublishingOnlyFilesToRunTheAppTargets>
  18. </PropertyGroup>
  19. <Import Project="$(MSBuildThisFileDirectory)\$(MSBuildThisFileName)\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftWebPublishingOnlyFilesToRunTheAppTargets)' == 'true' and exists('$(MSBuildThisFileDirectory)\$(MSBuildThisFileName)\ImportBefore')"/>
  20. <PropertyGroup>
  21. <PublishPipelineCollectFilesCore>
  22. $(PublishPipelineCollectFilesCore);
  23. CollectFilesFromIntermediateAssembly;
  24. CollectFilesFromContent;
  25. CollectFilesFromAddModules;
  26. CollectFilesFrom_SGenDllCreated;
  27. CollectFilesFromIntermediateSatelliteAssembliesWithTargetPath;
  28. CollectFilesFromReference;
  29. CollectFilesFromAllExtraReferenceFiles;
  30. CollectFilesFrom_SourceItemsToCopyToOutputDirectory;
  31. CollectFilesFromDocFileItem;
  32. CollectFilesFrom_WebApplicationSilverlightXapFiles;
  33. CollectFilesFrom_binDeployableAssemblies;
  34. </PublishPipelineCollectFilesCore>
  35. <ExcludeTransformAssistFilesFromPublish Condition="'$(ExcludeTransformAssistFilesFromPublish)'==''">True</ExcludeTransformAssistFilesFromPublish>
  36. </PropertyGroup>
  37. <!--***************************************************************-->
  38. <!-- Task CollectFilesFromIntermediateAssembly -->
  39. <!-- Note $(OutDir) can be not in the bin like in Team build system -->
  40. <!--***************************************************************-->
  41. <PropertyGroup>
  42. <CollectFilesFromIntermediateAssemblyDependsOn>
  43. $(OnBeforeCollectFilesFromIntermediateAssembly);
  44. $(CollectFilesFromIntermediateAssemblyDependsOn);
  45. </CollectFilesFromIntermediateAssemblyDependsOn>
  46. </PropertyGroup>
  47. <Target Name="CollectFilesFromIntermediateAssembly"
  48. DependsOnTargets="$(CollectFilesFromIntermediateAssemblyDependsOn)"
  49. Condition="'@(IntermediateAssembly)'!=''">
  50. <!--Get Localized string before display message-->
  51. <GetPublishingLocalizedString
  52. ID="PublishLocalizedString_GatherSpecificItemsFromProject"
  53. ArgumentCount="1"
  54. Arguments="IntermediateAssembly"
  55. LogType="Message" />
  56. <Message Text="@(IntermediateAssembly->'$(OutDir)%(FileName)%(Extension) to bin\%(FileName)%(Extension)')" />
  57. <ItemGroup>
  58. <FilesForPackagingFromProject
  59. Include="@(IntermediateAssembly->'$(OutDir)%(FileName)%(Extension)')">
  60. <DestinationRelativePath>bin\%(FileName)%(Extension)</DestinationRelativePath>
  61. <FromTarget>CollectFilesFromIntermediateAssembly</FromTarget>
  62. <Category>Run</Category>
  63. </FilesForPackagingFromProject>
  64. </ItemGroup>
  65. <Message Text="@(IntermediateAssembly->'$(OutDir)%(FileName).pdb to bin\%(FileName).pdb')"
  66. Condition="$(_DebugSymbolsProduced) AND !$(ExcludeGeneratedDebugSymbol) AND Exists(@(IntermediateAssembly->'$(OutDir)%(FileName).pdb')) "/>
  67. <ItemGroup Condition="$(_DebugSymbolsProduced) AND !$(ExcludeGeneratedDebugSymbol) AND Exists(@(IntermediateAssembly->'$(OutDir)%(FileName).pdb'))">
  68. <FilesForPackagingFromProject
  69. Include="@(IntermediateAssembly->'$(OutDir)%(FileName).pdb')"
  70. Condition="Exists(@(IntermediateAssembly->'$(OutDir)%(FileName).pdb'))">
  71. <DestinationRelativePath>bin\%(FileName).pdb</DestinationRelativePath>
  72. <FromTarget>CollectFilesFromIntermediateAssembly</FromTarget>
  73. <Category>Debug</Category>
  74. </FilesForPackagingFromProject>
  75. </ItemGroup>
  76. <CallTarget Targets="$(OnAfterCollectFilesFromIntermediateAssembly)" RunEachTargetSeparately="false" />
  77. </Target>
  78. <!--********************************************************************-->
  79. <!-- Task CollectFilesFromContent -->
  80. <!--********************************************************************-->
  81. <PropertyGroup>
  82. <CollectFilesFromContentDependsOn>
  83. $(OnBeforeCollectFilesFromContent);
  84. $(CollectFilesFromContentDependsOn);
  85. </CollectFilesFromContentDependsOn>
  86. </PropertyGroup>
  87. <Target Name="CollectFilesFromContent"
  88. DependsOnTargets="$(CollectFilesFromContentDependsOn)"
  89. Condition="'@(Content)'!=''">
  90. <!--Get Localized string before display message-->
  91. <GetPublishingLocalizedString
  92. ID="PublishLocalizedString_GatherSpecificItemsFromProject"
  93. ArgumentCount="1"
  94. Arguments="Content"
  95. LogType="Message" />
  96. <Message Text="@(Content)" />
  97. <ItemGroup>
  98. <FilesForPackagingFromProject Include="@(Content)" Condition="'%(Content.Link)'==''">
  99. <DestinationRelativePath>%(Content.Identity)</DestinationRelativePath>
  100. <FromTarget>CollectFilesFromContent</FromTarget>
  101. <Category>Run</Category>
  102. </FilesForPackagingFromProject>
  103. <FilesForPackagingFromProject Include="@(Content)" Condition="'%(Content.Link)'!='' And $(EnableCollectLinkFilesInProject)">
  104. <DestinationRelativePath>%(Content.Link)</DestinationRelativePath>
  105. <FromTarget>CollectFilesFromContent</FromTarget>
  106. <Category>Run</Category>
  107. <Exclude>$(ExcludeLinkFilesInProject)</Exclude>
  108. <ProjectFileType>Link</ProjectFileType>
  109. </FilesForPackagingFromProject>
  110. </ItemGroup>
  111. <CallTarget Targets="$(OnAfterCollectFilesFromContent)" RunEachTargetSeparately="false" />
  112. </Target>
  113. <!--********************************************************************-->
  114. <!-- Task CollectFilesFromAddModules -->
  115. <!--********************************************************************-->
  116. <PropertyGroup>
  117. <CollectFilesFromAddModulesDependsOn>
  118. $(OnBeforeCollectFilesFromAddModulesDependsOn);
  119. $(CollectFilesFromAddModulesDependsOn);
  120. </CollectFilesFromAddModulesDependsOn>
  121. </PropertyGroup>
  122. <Target Name="CollectFilesFromAddModules"
  123. DependsOnTargets="$(CollectFilesFromAddModulesDependsOn)"
  124. Condition="'@(AddModules)'!=''">
  125. <!--Get Localized string before display message-->
  126. <GetPublishingLocalizedString
  127. ID="PublishLocalizedString_GatherSpecificOutputsFromProject"
  128. ArgumentCount="1"
  129. Arguments="AddModules"
  130. LogType="Message" />
  131. <Message Text="@(AddModules->'$(OutDir)%(FileName)%(Extension) to bin\%(FileName)%(Extension)')"/>
  132. <ItemGroup>
  133. <FilesForPackagingFromProject Include="@(AddModules->'$(OutDir)%(FileName)%(Extension)')">
  134. <DestinationRelativePath>bin\%(FileName)%(Extension)</DestinationRelativePath>
  135. <FromTarget>CollectFilesFromAddModules</FromTarget>
  136. <Category>Run</Category>
  137. </FilesForPackagingFromProject>
  138. </ItemGroup>
  139. <CallTarget Targets="$(OnAfterCollectFilesFromAddModulesDependsOn)" RunEachTargetSeparately="false" />
  140. </Target>
  141. <!--********************************************************************-->
  142. <!-- Task CollectFilesFrom_SGenDllCreated -->
  143. <!--********************************************************************-->
  144. <PropertyGroup>
  145. <CollectFilesFrom_SGenDllCreatedDependsOn>
  146. $(OnBeforeCollectFilesFrom_SGenDllCreated);
  147. $(CollectFilesFrom_SGenDllCreatedDependsOn);
  148. </CollectFilesFrom_SGenDllCreatedDependsOn>
  149. </PropertyGroup>
  150. <Target Name="CollectFilesFrom_SGenDllCreated"
  151. DependsOnTargets="$(CollectFilesFrom_SGenDllCreatedDependsOn)"
  152. Condition="$(_SGenDllCreated)">
  153. <!--Get Localized string before display message-->
  154. <GetPublishingLocalizedString
  155. ID="PublishLocalizedString_GatherSpecificOutputsFromProject"
  156. ArgumentCount="1"
  157. Arguments="_SGenDllName"
  158. LogType="Message" />
  159. <Message Text="bin\$(_SGenDllName)" />
  160. <ItemGroup>
  161. <FilesForPackagingFromProject Include="$(OutDir)$(_SGenDllName)">
  162. <DestinationRelativePath>bin\$(_SGenDllName)</DestinationRelativePath>
  163. <FromTarget>CollectFilesFrom_SGenDllCreated</FromTarget>
  164. <Category>Run</Category>
  165. </FilesForPackagingFromProject>
  166. </ItemGroup>
  167. <CallTarget Targets="$(OnAfterCollectFilesFrom_SGenDllCreated)" RunEachTargetSeparately="false" />
  168. </Target>
  169. <!--********************************************************************-->
  170. <!-- Task CollectFilesFromIntermediateSatelliteAssembliesWithTargetPath -->
  171. <!--********************************************************************-->
  172. <PropertyGroup>
  173. <CollectFilesFromIntermediateSatelliteAssembliesWithTargetPathDependsOn>
  174. $(OnBeforeCollectFilesFromIntermediateSatelliteAssembliesWithTargetPath);
  175. $(CollectFilesFromIntermediateSatelliteAssembliesWithTargetPathDependsOn);
  176. </CollectFilesFromIntermediateSatelliteAssembliesWithTargetPathDependsOn>
  177. </PropertyGroup>
  178. <Target Name="CollectFilesFromIntermediateSatelliteAssembliesWithTargetPath"
  179. DependsOnTargets="$(CollectFilesFromIntermediateSatelliteAssembliesWithTargetPathDependsOn)">
  180. <!--Get Localized string before display message-->
  181. <GetPublishingLocalizedString
  182. ID="PublishLocalizedString_GatherSpecificOutputsFromProject"
  183. ArgumentCount="1"
  184. Arguments="IntermediateSatelliteAssembliesWithTargetPath"
  185. LogType="Message" />
  186. <Message Text="@(IntermediateSatelliteAssembliesWithTargetPath->'$(OutDir)%(TargetPath) to bin\%(TargetPath)')"
  187. Condition="Exists('$(OutDir)\%(TargetPath)')"/>
  188. <ItemGroup>
  189. <FilesForPackagingFromProject
  190. Include="@(IntermediateSatelliteAssembliesWithTargetPath->'$(OutDir)%(TargetPath)')">
  191. <DestinationRelativePath>bin\%(IntermediateSatelliteAssembliesWithTargetPath.TargetPath)</DestinationRelativePath>
  192. <FromTarget>CollectFilesFromIntermediateSatelliteAssembliesWithTargetPath</FromTarget>
  193. <Category>Run</Category>
  194. </FilesForPackagingFromProject>
  195. </ItemGroup>
  196. <CallTarget Targets="$(OnAfterCollectFilesFromIntermediateSatelliteAssembliesWithTargetPath)" RunEachTargetSeparately="false" />
  197. </Target>
  198. <!--********************************************************************-->
  199. <!-- Task CollectFilesFromReference -->
  200. <!--********************************************************************-->
  201. <PropertyGroup>
  202. <CollectFilesFromReferenceDependsOn>
  203. $(OnBeforeCollectFilesFromReference);
  204. $(CollectFilesFromReferenceDependsOn);
  205. ResolveProjectReferences;
  206. ResolveAssemblyReferences;
  207. </CollectFilesFromReferenceDependsOn>
  208. </PropertyGroup>
  209. <Target Name="CollectFilesFromReference"
  210. DependsOnTargets="$(CollectFilesFromReferenceDependsOn)">
  211. <!--Get Localized string before display message-->
  212. <GetPublishingLocalizedString
  213. ID="PublishLocalizedString_GatherSpecificItemsFromProjectNoDetail"
  214. ArgumentCount="1"
  215. Arguments="ReferenceCopyLocalPaths,ReferenceComWrappersToCopyLocal,ResolvedIsolatedComModules,_DeploymentLooseManifestFile,NativeReferenceFile"
  216. LogType="Message" />
  217. <ItemGroup>
  218. <FilesForPackagingFromProject
  219. Include="@(ReferenceCopyLocalPaths)">
  220. <DestinationRelativePath>bin\%(ReferenceCopyLocalPaths.DestinationSubDirectory)%(FileName)%(Extension)</DestinationRelativePath>
  221. <FromTarget>CollectFilesFromReference</FromTarget>
  222. <Category>Run</Category>
  223. </FilesForPackagingFromProject>
  224. </ItemGroup>
  225. <ItemGroup>
  226. <FilesForPackagingFromProject
  227. Include="@(ReferenceComWrappersToCopyLocal);
  228. @(ResolvedIsolatedComModules);
  229. @(_DeploymentLooseManifestFile);
  230. @(NativeReferenceFile)">
  231. <DestinationRelativePath>bin\%(FileName)%(Extension)</DestinationRelativePath>
  232. <FromTarget>CollectFilesFromReference</FromTarget>
  233. <Category>Run</Category>
  234. </FilesForPackagingFromProject>
  235. </ItemGroup>
  236. <CallTarget Targets="$(OnAfterCollectFilesFromReference)" RunEachTargetSeparately="false" />
  237. </Target>
  238. <!--********************************************************************-->
  239. <!-- Task CollectFilesFromAllExtraReferenceFiles -->
  240. <!--********************************************************************-->
  241. <PropertyGroup>
  242. <CollectFilesFromAllExtraReferenceFilesDependsOn>
  243. $(OnBeforeCollectFilesFromAllExtraReferenceFiles);
  244. $(CollectFilesFromAllExtraReferenceFilesDependsOn);
  245. </CollectFilesFromAllExtraReferenceFilesDependsOn>
  246. </PropertyGroup>
  247. <Target Name="CollectFilesFromAllExtraReferenceFiles"
  248. DependsOnTargets="$(CollectFilesFromAllExtraReferenceFilesDependsOn)">
  249. <!--Get Localized string before display message-->
  250. <GetPublishingLocalizedString
  251. ID="PublishLocalizedString_GatherSpecificItemsFromProject"
  252. ArgumentCount="1"
  253. Arguments="AllExtraReferenceFiles"
  254. LogType="Message" />
  255. <Message Text="@(AllExtraReferenceFiles->'$(OutDir)%(FileName)%(Extension)')" />
  256. <ItemGroup>
  257. <FilesForPackagingFromProject Include="@(AllExtraReferenceFiles->'$(OutDir)%(FileName)%(Extension)')">
  258. <DestinationRelativePath>bin\%(FileName)%(Extension)</DestinationRelativePath>
  259. <FromTarget>CollectFilesFromAllExtraReferenceFiles</FromTarget>
  260. <Category>Run</Category>
  261. </FilesForPackagingFromProject>
  262. </ItemGroup>
  263. <CallTarget Targets="$(OnAfterCollectFilesFromAllExtraReferenceFiles)" RunEachTargetSeparately="false"/>
  264. </Target>
  265. <!--********************************************************************-->
  266. <!-- Task CollectFilesFrom_SourceItemsToCopyToOutputDirectory -->
  267. <!--********************************************************************-->
  268. <PropertyGroup>
  269. <CollectFilesFrom_SourceItemsToCopyToOutputDirectoryDependsOn>
  270. $(OnBeforeCollectFilesFrom_SourceItemsToCopyToOutputDirectory);
  271. $(CollectFilesFrom_SourceItemsToCopyToOutputDirectoryDependsOn);
  272. </CollectFilesFrom_SourceItemsToCopyToOutputDirectoryDependsOn>
  273. </PropertyGroup>
  274. <Target Name="CollectFilesFrom_SourceItemsToCopyToOutputDirectory"
  275. DependsOnTargets="$(CollectFilesFrom_SourceItemsToCopyToOutputDirectoryDependsOn)"
  276. Condition="'@(_SourceItemsToCopyToOutputDirectoryAlways)' != '' or '@(_SourceItemsToCopyToOutputDirectory)' != ''">
  277. <!--Get Localized string before display message-->
  278. <GetPublishingLocalizedString
  279. ID="PublishLocalizedString_GatherSpecificItemsFromProject"
  280. ArgumentCount="1"
  281. Arguments="_SourceItemsToCopyToOutputDirectoryAlways,_SourceItemsToCopyToOutputDirectory"
  282. LogType="Message" />
  283. <ItemGroup>
  284. <_TempSourceItemsToCopyToOutputDirectory Include="@(_SourceItemsToCopyToOutputDirectoryAlways); @(_SourceItemsToCopyToOutputDirectory)" />
  285. </ItemGroup>
  286. <Message Text="@(_TempSourceItemsToCopyToOutputDirectory->'bin\%(TargetPath)')" />
  287. <ItemGroup>
  288. <FilesForPackagingFromProject
  289. Include="@(_TempSourceItemsToCopyToOutputDirectory)">
  290. <DestinationRelativePath>bin\%(_TempSourceItemsToCopyToOutputDirectory.TargetPath)</DestinationRelativePath>
  291. <FromTarget>CollectFilesFrom_SourceItemsToCopyToOutputDirectory</FromTarget>
  292. <Category>Run</Category>
  293. </FilesForPackagingFromProject>
  294. </ItemGroup>
  295. <CallTarget Targets="$(OnAfterCollectFilesFrom_SourceItemsToCopyToOutputDirectory)" RunEachTargetSeparately="false" />
  296. </Target>
  297. <!--********************************************************************-->
  298. <!-- Task CollectFilesFromDocFileItem -->
  299. <!--********************************************************************-->
  300. <PropertyGroup>
  301. <CollectFilesFromDocFileItemDependsOn>
  302. $(OnBeforeCollectFilesFromDocFileItem);
  303. $(CollectFilesFromDocFileItemDependsOn);
  304. </CollectFilesFromDocFileItemDependsOn>
  305. </PropertyGroup>
  306. <Target Name="CollectFilesFromDocFileItem"
  307. DependsOnTargets="$(CollectFilesFromDocFileItemDependsOn)"
  308. Condition="$(_DocumentationFileProduced)" >
  309. <!--Get Localized string before display message-->
  310. <GetPublishingLocalizedString
  311. ID="PublishLocalizedString_GatherSpecificItemsFromProject"
  312. ArgumentCount="1"
  313. Arguments="DocFileItem"
  314. LogType="Message" />
  315. <Message Text="@(DocFileItem->'bin\%(FileName)%(Extension)')" />
  316. <ItemGroup>
  317. <FilesForPackagingFromProject
  318. Include="@(DocFileItem)">
  319. <DestinationRelativePath>bin\%(FileName)%(Extension)</DestinationRelativePath>
  320. <FromTarget>CollectFilesFromDocFileItem</FromTarget>
  321. <Category>Run</Category>
  322. </FilesForPackagingFromProject>
  323. </ItemGroup>
  324. <CallTarget Targets="$(OnAfterCollectFilesFromDocFileItem)" RunEachTargetSeparately="false" />
  325. </Target>
  326. <!--********************************************************************-->
  327. <!-- Task CollectFilesFrom_WebApplicationSilverlightXapFiles -->
  328. <!--********************************************************************-->
  329. <PropertyGroup>
  330. <CollectFilesFrom_WebApplicationSilverlightXapFilesDependsOn>
  331. $(OnBeforeCollectFilesFrom_WebApplicationSilverlightXapFiles);
  332. $(CollectFilesFrom_WebApplicationSilverlightXapFilesDependsOn);
  333. </CollectFilesFrom_WebApplicationSilverlightXapFilesDependsOn>
  334. </PropertyGroup>
  335. <Target Name="CollectFilesFrom_WebApplicationSilverlightXapFiles"
  336. DependsOnTargets="$(CollectFilesFrom_WebApplicationSilverlightXapFilesDependsOn)"
  337. Condition="'@(_WebApplicationSilverlightXapFiles)'!=''">
  338. <FilterByItems PipelineItems="@(_WebApplicationSilverlightXapFiles)"
  339. Filter="@(Content)">
  340. <Output TaskParameter="OutFilter" ItemName="_WebApplicationSilverlightXapFilesNotInContent"/>
  341. </FilterByItems>
  342. <!--Get Localized string before display message-->
  343. <GetPublishingLocalizedString
  344. ID="PublishLocalizedString_GatherSpecificItemsFromProject"
  345. ArgumentCount="1"
  346. Arguments="_WebApplicationSilverlightXapFilesNotInContent"
  347. LogType="Message" />
  348. <Message Text="@(_WebApplicationSilverlightXapFilesNotInContent)" />
  349. <ItemGroup>
  350. <FilesForPackagingFromProject Include="@(_WebApplicationSilverlightXapFilesNotInContent)">
  351. <DestinationRelativePath>%(_WebApplicationSilverlightXapFiles.Identity)</DestinationRelativePath>
  352. <FromTarget>CollectFilesFrom_WebApplicationSilverlightXapFiles</FromTarget>
  353. <Category>Run</Category>
  354. </FilesForPackagingFromProject>
  355. </ItemGroup>
  356. <CallTarget Targets="$(OnAfterCollectFilesFrom_WebApplicationSilverlightXapFiles)" RunEachTargetSeparately="false" />
  357. </Target>
  358. <!--********************************************************************-->
  359. <!-- Task CollectFilesFrom_binDeployableAssemblies -->
  360. <!--********************************************************************-->
  361. <PropertyGroup>
  362. <CollectFilesFrom_binDeployableAssembliesDependsOn>
  363. $(OnBeforeCollectFilesFrom_binDeployableAssemblies);
  364. $(CollectFilesFrom_binDeployableAssembliesDependsOn);
  365. _CopyBinDeployableAssemblies;
  366. </CollectFilesFrom_binDeployableAssembliesDependsOn>
  367. </PropertyGroup>
  368. <Target Name="CollectFilesFrom_binDeployableAssemblies"
  369. DependsOnTargets="$(CollectFilesFrom_binDeployableAssembliesDependsOn)">
  370. <!--Make sure binDeployableAssemblies is in None group. This is mainly for the dev10-->
  371. <FilterByItems PipelineItems="@(_binDeployableAssemblies)"
  372. SourceMetadataName="FullPath"
  373. Filter="@(None)"
  374. FilterMetadataName="FullPath">
  375. <Output TaskParameter="InFilter" ItemName="_binDeployableAssemblies_None"/>
  376. </FilterByItems>
  377. <!--Get Localized string before display message-->
  378. <GetPublishingLocalizedString
  379. ID="PublishLocalizedString_GatherSpecificItemsFromProject"
  380. ArgumentCount="1"
  381. Arguments="_binDeployableAssemblies"
  382. LogType="Message" />
  383. <Message Text="@(_binDeployableAssemblies_None)" />
  384. <ItemGroup>
  385. <FilesForPackagingFromProject Include="@(_binDeployableAssemblies_None)" Condition="'%(_binDeployableAssemblies_None.DestinationRelPath)'==''">
  386. <DestinationRelativePath>bin\%(RecursiveDir)%(FileName)%(Extension)</DestinationRelativePath>
  387. <FromTarget>CollectFilesFrom_binDeployableAssemblies_NoDestinationRelPath</FromTarget>
  388. <Category>Run</Category>
  389. </FilesForPackagingFromProject>
  390. <!--VS11, _binDeployAssembly begin to have %(DestinationRelPath), we should honer that instead of %(recursiveDir)-->
  391. <FilesForPackagingFromProject Include="@(_binDeployableAssemblies_None)" Condition="'%(_binDeployableAssemblies_None.DestinationRelPath)'!=''">
  392. <DestinationRelativePath>bin\%(_binDeployableAssemblies_None.DestinationRelPath)%(FileName)%(Extension)</DestinationRelativePath>
  393. <FromTarget>CollectFilesFrom_binDeployableAssemblies_WithDestinationRelPath</FromTarget>
  394. <Category>Run</Category>
  395. </FilesForPackagingFromProject>
  396. </ItemGroup>
  397. <CallTarget Targets="$(OnAfterCollectFilesFrom_binDeployableAssemblies)" RunEachTargetSeparately="false" />
  398. </Target>
  399. <!--ImportAfter Extension-->
  400. <PropertyGroup>
  401. <ImportByWildcardAfterMicrosoftWebPublishingOnlyFilesToRunTheAppTargets Condition="'$(ImportByWildcardAfterMicrosoftWebPublishingOnlyFilesToRunTheAppTargets)'==''">true</ImportByWildcardAfterMicrosoftWebPublishingOnlyFilesToRunTheAppTargets>
  402. </PropertyGroup>
  403. <Import Project="$(MSBuildThisFileDirectory)\$(MSBuildThisFileName)\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftWebPublishingOnlyFilesToRunTheAppTargets)' == 'true' and exists('$(MSBuildThisFileDirectory)\$(MSBuildThisFileName)\ImportAfter')"/>
  404. </Project>