|
96 | 96 | <Copy SourceFiles="@(_cabs)" DestinationFolder="$(InstallersOutputPath)" /> |
97 | 97 | </Target> |
98 | 98 |
|
99 | | - <Target Name="CreateWixPackageDrop" AfterTargets="CopyToArtifactsDirectory"> |
100 | | - <MakeDir Directories="$(WixCommandPackagesDir)" /> |
101 | | - <ItemGroup> |
102 | | - <WixInstallerFilesToProcess Include="$(TargetPath)" /> |
103 | | - <WixInstallerFilesToProcess Include="$(InstallersOutputPath)$(PackageFileName)" |
104 | | - Condition=" '$(IsShipping)' == 'true' AND '$(SkipCopyToArtifactsDirectory)' != 'true' " /> |
105 | | - </ItemGroup> |
106 | | - <CreateLightCommandPackageDrop |
107 | | - LightCommandWorkingDir="$(WixCommandObjDir)" |
108 | | - OutputFolder="$(WixCommandPackagesDir)" |
109 | | - NoLogo="true" |
110 | | - Cultures="en-us" |
111 | | - InstallerFile="%(WixInstallerFilesToProcess.Identity)" |
112 | | - AdditionalBasePaths="$(MSBuildProjectDirectory);$(PkgMicrosoft_DotNet_Build_Tasks_Installers)\build\wix\bundle" |
113 | | - WixExtensions="@(WixExtension)" |
114 | | - Loc="@(EmbeddedResource)" |
115 | | - Sice="$(SuppressIces)" |
116 | | - WixProjectFile="$(MSBuildProjectFile)" |
117 | | - Fv="true" |
118 | | - WixSrcFiles="@(CompileObjOutput);@(WixObject);@(WixLibProjects);@(_ResolvedWixLibraryPaths)"> |
119 | | - <Output TaskParameter="OutputFile" PropertyName="_LightCommandPackageNameOutput" /> |
120 | | - </CreateLightCommandPackageDrop> |
| 99 | + <Target Name="GenerateWixpackPackage" AfterTargets="CoreCompile"> |
| 100 | + <PropertyGroup> |
| 101 | + <WixpackWorkingDir>$(IntermediateOutputPath)wixpack</WixpackWorkingDir> |
| 102 | + <WixpackOutputDir>$(ArtifactsNonShippingPackagesDir)</WixpackOutputDir> |
| 103 | + </PropertyGroup> |
| 104 | + |
| 105 | + <CreateWixBuildWixpack |
| 106 | + BindTrackingFile="$(IntermediateOutputPath)$(BindTrackingFilePrefix)%(CultureGroup.OutputSuffix)$(BindTrackingFileExtension)" |
| 107 | + Cultures="%(CultureGroup.Identity)" |
| 108 | + DefineConstants="$(DefineConstants);$(SolutionDefineConstants);$(ProjectDefineConstants);$(ProjectReferenceDefineConstants)" |
| 109 | + Extensions="@(_ResolvedWixExtensionPaths)" |
| 110 | + InstallerPlatform="$(InstallerPlatform)" |
| 111 | + InstallerFile="$(IntermediateOutputPath)%(CultureGroup.OutputFolder)$(TargetFileName)" |
| 112 | + IntermediateDirectory="$(IntermediateOutputPath)%(CultureGroup.OutputFolder)" |
| 113 | + OutputFolder="$(WixpackOutputDir)" |
| 114 | + OutputType="$(OutputType)" |
| 115 | + PdbFile="$(IntermediateOutputPath)%(CultureGroup.OutputFolder)$(TargetPdbFileName)" |
| 116 | + PdbType="$(DebugType)" |
| 117 | + SourceFiles="@(Compile)" |
| 118 | + WixpackWorkingDir="$(WixpackWorkingDir)"> |
| 119 | + <Output TaskParameter="OutputFile" PropertyName="_WixBuildCommandPackageNameOutput" /> |
| 120 | + </CreateWixBuildWixpack> |
121 | 121 | </Target> |
122 | 122 |
|
123 | 123 | <!-- wixprojs don't do any packaging but the target is called from Arcade's Build.proj. --> |
|
0 commit comments