diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-07-22 18:12:23 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-07-22 20:13:49 +1000 |
commit | 71802ec02bae5f882ca3cd894abc202d63da9440 (patch) | |
tree | d121608aefd7d7258a83ee072467ee205b26eb05 /src/test/examples/examples.proj | |
parent | ab7e604a7d7b53f288b81a603c0dce1fc5c8e048 (diff) | |
download | wix-71802ec02bae5f882ca3cd894abc202d63da9440.tar.gz wix-71802ec02bae5f882ca3cd894abc202d63da9440.tar.bz2 wix-71802ec02bae5f882ca3cd894abc202d63da9440.zip |
Fix ManagedHost tests by using Heat to harvest the BA payloads.
Also, build all example bundles in the new examples.proj instead of the tests to speed up the solution build.
Diffstat (limited to 'src/test/examples/examples.proj')
-rw-r--r-- | src/test/examples/examples.proj | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/test/examples/examples.proj b/src/test/examples/examples.proj new file mode 100644 index 00000000..08cb7511 --- /dev/null +++ b/src/test/examples/examples.proj | |||
@@ -0,0 +1,50 @@ | |||
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 | |||
5 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
6 | <Import Project="..\..\Directory.Build.props" /> | ||
7 | |||
8 | <PropertyGroup> | ||
9 | <EarliestCoreMBAProjectPath>EarliestCoreMBA\Example.EarliestCoreMBA.csproj</EarliestCoreMBAProjectPath> | ||
10 | <FullFramework2MBAProjectPath>FullFramework2MBA\Example.FullFramework2MBA.csproj</FullFramework2MBAProjectPath> | ||
11 | <FullFramework4MBAProjectPath>FullFramework4MBA\Example.FullFramework4MBA.csproj</FullFramework4MBAProjectPath> | ||
12 | <LatestCoreMBAProjectPath>LatestCoreMBA\Example.LatestCoreMBA.csproj</LatestCoreMBAProjectPath> | ||
13 | <WPFCoreMBAProjectPath>WPFCoreMBA\Example.WPFCoreMBA.csproj</WPFCoreMBAProjectPath> | ||
14 | <MBAPublishPath>$(OutputPath)examples\publish\</MBAPublishPath> | ||
15 | </PropertyGroup> | ||
16 | |||
17 | <ItemGroup> | ||
18 | <CoreMBAProject Include="$(EarliestCoreMBAProjectPath)"> | ||
19 | <PublishPath>$(MBAPublishPath)Example.EarliestCoreMBA</PublishPath> | ||
20 | </CoreMBAProject> | ||
21 | <CoreMBAProject Include="$(LatestCoreMBAProjectPath)"> | ||
22 | <PublishPath>$(MBAPublishPath)Example.LatestCoreMBA</PublishPath> | ||
23 | </CoreMBAProject> | ||
24 | <CoreMBAProject Include="$(WPFCoreMBAProjectPath)"> | ||
25 | <PublishPath>$(MBAPublishPath)Example.WPFCoreMBA</PublishPath> | ||
26 | <SkipSCD>true</SkipSCD> | ||
27 | <SkipTrimmedSCD>true</SkipTrimmedSCD> | ||
28 | </CoreMBAProject> | ||
29 | |||
30 | <FullMBAProject Include="$(FullFramework2MBAProjectPath)" /> | ||
31 | <FullMBAProject Include="$(FullFramework4MBAProjectPath)" /> | ||
32 | |||
33 | <ExampleBundleProject Include="**\*.wixproj" /> | ||
34 | </ItemGroup> | ||
35 | |||
36 | <Target Name="PublishCoreExamples"> | ||
37 | <Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\fdd" -r win-x86 -c $(Configuration) --self-contained false "%(CoreMBAProject.Identity)"' | ||
38 | Condition="'%(CoreMBAProject.SkipFDD)'==''" /> | ||
39 | <Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\scd" -r win-x86 -c $(Configuration) --self-contained true "%(CoreMBAProject.Identity)"' | ||
40 | Condition="'%(CoreMBAProject.SkipSCD)'==''" /> | ||
41 | <Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\trimmedscd" -r win-x86 -c $(Configuration) --self-contained true -p:PublishTrimmed=true "%(CoreMBAProject.Identity)"' | ||
42 | Condition="'%(CoreMBAProject.SkipTrimmedSCD)'==''" /> | ||
43 | </Target> | ||
44 | |||
45 | <Target Name="Build" DependsOnTargets="PublishCoreExamples"> | ||
46 | <MSBuild Projects="%(ExampleBundleProject.Identity)" /> | ||
47 | </Target> | ||
48 | |||
49 | <Import Project="..\..\Directory.Build.targets" /> | ||
50 | </Project> \ No newline at end of file | ||