main
csproj 35 lines 1.4 KB
Raw
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 <IsPackable>false</IsPackable>
8 <OutputType>Exe</OutputType>
9 <SignOutput>false</SignOutput>
10 <RollForward>Major</RollForward>
11
12 <WixlibPath>$(BaseOutputPath)TestData\$(Configuration)\example.wixlib</WixlibPath>
13 </PropertyGroup>
14
15 <ItemGroup>
16 <ProjectReference Include="..\..\WixInternal.Core.TestPackage\WixInternal.Core.TestPackage.csproj" />
17 </ItemGroup>
18
19 <ItemGroup>
20 <ExtensionSource Include="..\Example.Extension\Data\example.wxs" />
21 <ExtensionSource Include="..\Example.Extension\Data\example.en-us.wxl" />
22 <ExtensionSource Include="..\Example.Extension\Data\example.ja-jp.wxl" />
23 </ItemGroup>
24
25 <Target Name="BuildExtensionWixlibs"
26 AfterTargets="AfterBuild"
27 Inputs="@(ExtensionSource)"
28 Outputs="$(WixlibPath)"
29 Condition=" '$(NCrunch)'!='1' ">
30
31 <Exec Command="dotnet @(TargetPathWithTargetPlatformMoniker) &quot;$(IntermediateOutputPath) &quot; &quot;$(WixlibPath)&quot; &quot;@(ExtensionSource)&quot;" />
32
33 <Message Importance="high" Text="@(ExtensionSource) -&gt; $(WixlibPath)" />
34 </Target>
35 </Project>