|
24 | 24 | <GuidInputs>$(Version);$(Platform);$(VersionSuffix);$(_BuildNumberLabels)</GuidInputs> |
25 | 25 | </PropertyGroup> |
26 | 26 |
|
| 27 | + <ItemGroup> |
| 28 | + <PackageReference Include="Microsoft.DotNet.Build.Tasks.Installers" Version="$(MicrosoftDotNetBuildTasksInstallersPackageVersion)" /> |
| 29 | + </ItemGroup> |
| 30 | + |
| 31 | + <PropertyGroup> |
| 32 | + <MicrosoftDotNetBuildTasksInstallersTaskAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(NuGetPackageRoot)microsoft.dotnet.build.tasks.installers\$(MicrosoftDotNetBuildTasksInstallersPackageVersion)\tools\netcoreapp2.0\Microsoft.DotNet.Build.Tasks.Installers.dll</MicrosoftDotNetBuildTasksInstallersTaskAssembly> |
| 33 | + <MicrosoftDotNetBuildTasksInstallersTaskAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(NuGetPackageRoot)microsoft.dotnet.build.tasks.installers\$(MicrosoftDotNetBuildTasksInstallersPackageVersion)\tools\net472\Microsoft.DotNet.Build.Tasks.Installers.dll</MicrosoftDotNetBuildTasksInstallersTaskAssembly> |
| 34 | + </PropertyGroup> |
| 35 | + |
| 36 | + <UsingTask TaskName="CreateLightCommandPackageDrop" AssemblyFile="$(MicrosoftDotNetBuildTasksInstallersTaskAssembly)" /> |
| 37 | + <UsingTask TaskName="CreateLitCommandPackageDrop" AssemblyFile="$(MicrosoftDotNetBuildTasksInstallersTaskAssembly)" /> |
| 38 | + |
27 | 39 | <Target Name="GenerateGUIDs" BeforeTargets="BeforeBuild" DependsOnTargets="_GeneratePackageGuids;_GenerateBundleGuids" Condition=" '$(DisableGuidGeneration)' != 'true' " /> |
28 | 40 |
|
29 | 41 | <Target Name="_GeneratePackageGuids" Condition="'$(OutputType)' == 'package'"> |
|
72 | 84 | <Copy SourceFiles="@(_cabs)" DestinationFolder="$(InstallersOutputPath)" /> |
73 | 85 | </Target> |
74 | 86 |
|
| 87 | + <Target Name="CreateWixPackageDrop" AfterTargets="Build"> |
| 88 | + <CreateLightCommandPackageDrop |
| 89 | + LightCommandWorkingDir="$(WixCommandObjDir)" |
| 90 | + NoLogo="true" |
| 91 | + Cultures="en-us" |
| 92 | + Out="$(InstallersOutputPath)$(PackageFileName)" |
| 93 | + AdditionalBasePaths="$(MSBuildProjectDirectory)" |
| 94 | + WixExtensions="@(WixExtension)" |
| 95 | + Loc="@(EmbeddedResource)" |
| 96 | + Sice="$(SuppressIces)" |
| 97 | + WixProjectFile="$(MSBuildProjectFile)" |
| 98 | + Fv="true" |
| 99 | + WixSrcFiles="@(CompileObjOutput);@(WixObject);@(WixLibProjects);@(_ResolvedWixLibraryPaths)"> |
| 100 | + <Output TaskParameter="LightCommandPackageNameOutput" PropertyName="_LightCommandPackageNameOutput" /> |
| 101 | + </CreateLightCommandPackageDrop> |
| 102 | + <MakeDir Directories="$(WixCommandPackagesDir)" /> |
| 103 | + |
| 104 | + <ZipDirectory |
| 105 | + DestinationFile="$(WixCommandPackagesDir)/LightCommandPackage-$(_LightCommandPackageNameOutput).zip" |
| 106 | + SourceDirectory="$(WixCommandObjDir)/$(_LightCommandPackageNameOutput)" |
| 107 | + Overwrite="true" /> |
| 108 | + </Target> |
| 109 | + |
75 | 110 | </Project> |
0 commit comments