aboutsummaryrefslogtreecommitdiff
path: root/src/dtf
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2022-10-25 11:29:34 -0700
committerRob Mensching <rob@firegiant.com>2022-10-31 10:57:14 -0700
commit00a024e8595784e485115543f6045a0c5ea11ebc (patch)
tree0e9359de31b0f1bb4ae20873f036af957c6fa35a /src/dtf
parentd993372ad5468cae88990bc31a2c825e742cd717 (diff)
downloadwix-00a024e8595784e485115543f6045a0c5ea11ebc.tar.gz
wix-00a024e8595784e485115543f6045a0c5ea11ebc.tar.bz2
wix-00a024e8595784e485115543f6045a0c5ea11ebc.zip
Pack CA assembly only after it exists
Trying to pack the CA assembly before it is built reports erroneous or redundant error messages so don't do that. Fixes 6968
Diffstat (limited to 'src/dtf')
-rw-r--r--src/dtf/WixToolset.Dtf.CustomAction/WixToolset.Dtf.CustomAction.targets8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dtf/WixToolset.Dtf.CustomAction/WixToolset.Dtf.CustomAction.targets b/src/dtf/WixToolset.Dtf.CustomAction/WixToolset.Dtf.CustomAction.targets
index 9d63f24c..e83272a2 100644
--- a/src/dtf/WixToolset.Dtf.CustomAction/WixToolset.Dtf.CustomAction.targets
+++ b/src/dtf/WixToolset.Dtf.CustomAction/WixToolset.Dtf.CustomAction.targets
@@ -23,7 +23,10 @@
23 PackCustomAction 23 PackCustomAction
24 24
25 Creates an MSI managed custom action package that includes the custom action assembly, 25 Creates an MSI managed custom action package that includes the custom action assembly,
26 local assembly dependencies, and project content files. 26 local assembly dependencies, and project content files. This target is skipped until the
27 custom action assembly has been built. This prevents the target from running (and failing)
28 during project restore and other scenarios where the project is executed but the assembly
29 build is skipped.
27 30
28 [IN] 31 [IN]
29 @(IntermediateAssembly) - Managed custom action assembly. 32 @(IntermediateAssembly) - Managed custom action assembly.
@@ -36,7 +39,8 @@
36 --> 39 -->
37 <Target Name="PackCustomAction" 40 <Target Name="PackCustomAction"
38 Inputs="@(IntermediateAssembly);@(Content);$(CustomActionContents)" 41 Inputs="@(IntermediateAssembly);@(Content);$(CustomActionContents)"
39 Outputs="$(IntermediateOutputPath)$(TargetCAFileName)"> 42 Outputs="$(IntermediateOutputPath)$(TargetCAFileName)"
43 Condition=" Exists('@(IntermediateAssembly)') ">
40 44
41 <!-- Find all referenced items marked CopyLocal, but exclude non-binary files. --> 45 <!-- Find all referenced items marked CopyLocal, but exclude non-binary files. -->
42 <ItemGroup> 46 <ItemGroup>