@@ -1055,6 +1055,20 @@ Copyright (c) .NET Foundation. All rights reserved.
1055
1055
</GetEmbeddedApphostPaths >
1056
1056
1057
1057
</Target >
1058
+
1059
+ <!--
1060
+ ============================================================
1061
+ ComputeFilesCopiedToPublishDir
1062
+
1063
+ Gathers all the files that were copied to the publish directory. This is used by wapproj and is required for back compat.
1064
+ ============================================================
1065
+ -->
1066
+ <Target Name =" ComputeFilesCopiedToPublishDir" DependsOnTargets =" ComputeFilesToPublish" >
1067
+ <ItemGroup >
1068
+ <FilesCopiedToPublishDir Include =" @(ResolvedFileToPublish)" />
1069
+ <FilesCopiedToPublishDir Include =" $(PublishedSingleFilePath)" RelativePath =" $(PublishedSingleFileName)" IsKeyOutput =" true" Condition =" '$(PublishSingleFile)' == 'true'" />
1070
+ </ItemGroup >
1071
+ </Target >
1058
1072
1059
1073
<!--
1060
1074
============================================================
@@ -1067,21 +1081,16 @@ Copyright (c) .NET Foundation. All rights reserved.
1067
1081
<PublishItemsOutputGroupDependsOn >
1068
1082
$(PublishItemsOutputGroupDependsOn);
1069
1083
ResolveReferences;
1070
- ComputeFilesToPublish ;
1084
+ ComputeFilesCopiedToPublishDir ;
1071
1085
</PublishItemsOutputGroupDependsOn >
1072
1086
</PropertyGroup >
1073
1087
1074
1088
<Target Name =" PublishItemsOutputGroup" DependsOnTargets =" $(PublishItemsOutputGroupDependsOn)" Returns =" @(PublishItemsOutputGroupOutputs)" >
1075
1089
<ItemGroup >
1076
- <PublishItemsOutputGroupOutputs Include =" @(ResolvedFileToPublish ->'%(FullPath)')"
1077
- TargetPath =" %(ResolvedFileToPublish .RelativePath)"
1078
- IsKeyOutput =" %(ResolvedFileToPublish .IsKeyOutput)"
1090
+ <PublishItemsOutputGroupOutputs Include =" @(FilesCopiedToPublishDir ->'%(FullPath)')"
1091
+ TargetPath =" %(FilesCopiedToPublishDir .RelativePath)"
1092
+ IsKeyOutput =" %(FilesCopiedToPublishDir .IsKeyOutput)"
1079
1093
OutputGroup =" PublishItemsOutputGroup" />
1080
- <PublishItemsOutputGroupOutputs Include =" $(PublishedSingleFilePath)"
1081
- TargetPath =" $(PublishedSingleFileName)"
1082
- IsKeyOutput =" true"
1083
- OutputGroup =" PublishItemsOutputGroup"
1084
- Condition =" '$(PublishSingleFile)' == 'true'" />
1085
1094
</ItemGroup >
1086
1095
</Target >
1087
1096
0 commit comments