Skip to content

Commit f22d06f

Browse files
committed
Switch target
1 parent 21e8c19 commit f22d06f

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

src/Installers/Windows/Wix.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<LinkerAdditionalOptions>-fv</LinkerAdditionalOptions>
1313
<SuppressIces>ICE61</SuppressIces>
1414
<SuppressWarnings>1033</SuppressWarnings>
15+
<!-- Currently, WiX only supports 'full' for the -pdbType option. This affects both bundle and package projects. -->
16+
<DebugType>full</DebugType>
1517
</PropertyGroup>
1618

1719
<PropertyGroup>

src/Installers/Windows/Wix.targets

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -96,28 +96,28 @@
9696
<Copy SourceFiles="@(_cabs)" DestinationFolder="$(InstallersOutputPath)" />
9797
</Target>
9898

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>
121121
</Target>
122122

123123
<!-- wixprojs don't do any packaging but the target is called from Arcade's Build.proj. -->

0 commit comments

Comments
 (0)