| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
| 3 | |
| 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> |
| 6 | <TargetFramework>net6.0</TargetFramework> |
| 7 | <Description>WiX Toolset MSBuild integration</Description> |
| 8 | <PackageReadmeFile>README.md</PackageReadmeFile> |
| 9 | <PublishDir>$(PublishRoot)WixToolset.Sdk\</PublishDir> |
| 10 | <NuspecFile>$(MSBuildThisFileName).nuspec</NuspecFile> |
| 11 | <NuspecBasePath>$(PublishDir)</NuspecBasePath> |
| 12 | </PropertyGroup> |
| 13 | |
| 14 | <ItemGroup> |
| 15 | <None Include="README.md" Pack="true" PackagePath="\" /> |
| 16 | </ItemGroup> |
| 17 | |
| 18 | <ItemGroup> |
| 19 | <Content Include="build\$(MSBuildThisFileName).targets" CopyToOutputDirectory="PreserveNewest" /> |
| 20 | <Content Include="tools\WixToolset.Signing.props" CopyToOutputDirectory="PreserveNewest" /> |
| 21 | <Content Include="tools\WixToolset.Signing.targets" CopyToOutputDirectory="PreserveNewest" /> |
| 22 | <Content Include="tools\wix.props" CopyToOutputDirectory="PreserveNewest" /> |
| 23 | <Content Include="tools\wix.targets" CopyToOutputDirectory="PreserveNewest" /> |
| 24 | <Content Include="Sdk\Sdk.props" CopyToOutputDirectory="PreserveNewest" /> |
| 25 | <Content Include="Sdk\Sdk.targets" CopyToOutputDirectory="PreserveNewest" /> |
| 26 | </ItemGroup> |
| 27 | |
| 28 | <Target Name="PokeWixVersion" |
| 29 | AfterTargets="Publish"> |
| 30 | <PropertyGroup> |
| 31 | <Namespaces> |
| 32 | <Namespace Prefix="msb" Uri="http://schemas.microsoft.com/developer/msbuild/2003" /> |
| 33 | </Namespaces> |
| 34 | </PropertyGroup> |
| 35 | |
| 36 | <XmlPoke |
| 37 | XmlInputPath="$(PublishDir)tools\wix.props" |
| 38 | Namespaces="$(Namespaces)" |
| 39 | Query="//msb:WixToolsetMajorVersion" |
| 40 | Value="$(SomeVerInfoMajor)" /> |
| 41 | |
| 42 | <XmlPoke |
| 43 | XmlInputPath="$(PublishDir)tools\wix.props" |
| 44 | Namespaces="$(Namespaces)" |
| 45 | Query="//msb:WixToolsetMinorVersion" |
| 46 | Value="$(SomeVerInfoMinor)" /> |
| 47 | |
| 48 | <XmlPoke |
| 49 | XmlInputPath="$(PublishDir)tools\wix.props" |
| 50 | Namespaces="$(Namespaces)" |
| 51 | Query="//msb:WixToolsetPatchVersion" |
| 52 | Value="$(SomeVerInfoPatch)" /> |
| 53 | |
| 54 | <XmlPoke |
| 55 | XmlInputPath="$(PublishDir)tools\wix.props" |
| 56 | Namespaces="$(Namespaces)" |
| 57 | Query="//msb:WixToolsetMajorMinorVersion" |
| 58 | Value="$(SomeVerInfoMajor).$(SomeVerInfoMinor)" /> |
| 59 | |
| 60 | <XmlPoke |
| 61 | XmlInputPath="$(PublishDir)tools\wix.props" |
| 62 | Namespaces="$(Namespaces)" |
| 63 | Query="//msb:WixToolsetVersion" |
| 64 | Value="$(SomeVerInfoMajor).$(SomeVerInfoMinor).$(SomeVerInfoPatch)" /> |
| 65 | </Target> |
| 66 | </Project> |