diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-04-19 17:15:05 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-04-19 18:35:15 -0500 |
commit | 57fd164d56466a52854e825afd5fdc2b6b97f12a (patch) | |
tree | 7d4ace6d7a55c2a50302e3b6866456026a2c6222 /src/ext/Bal/test/examples | |
parent | 6435d26c7e2ce54ec38d0cc9eb4d2cb10e9614e0 (diff) | |
download | wix-57fd164d56466a52854e825afd5fdc2b6b97f12a.tar.gz wix-57fd164d56466a52854e825afd5fdc2b6b97f12a.tar.bz2 wix-57fd164d56466a52854e825afd5fdc2b6b97f12a.zip |
Replace Dnc.Host with Dnc.HostGenerator to support linker trimming.
Diffstat (limited to 'src/ext/Bal/test/examples')
-rw-r--r-- | src/ext/Bal/test/examples/Directory.Build.props | 3 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/Directory.Build.targets | 3 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/Directory.csproj.props | 5 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/Directory.wixproj.props (renamed from src/ext/Bal/test/examples/Wix.Build.props) | 0 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/Directory.wixproj.targets (renamed from src/ext/Bal/test/examples/Wix.Build.targets) | 0 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/DncBA.targets | 19 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj | 10 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj | 13 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj | 16 | ||||
-rw-r--r-- | src/ext/Bal/test/examples/examples.proj | 7 |
10 files changed, 35 insertions, 41 deletions
diff --git a/src/ext/Bal/test/examples/Directory.Build.props b/src/ext/Bal/test/examples/Directory.Build.props index 52b931f6..7f38564a 100644 --- a/src/ext/Bal/test/examples/Directory.Build.props +++ b/src/ext/Bal/test/examples/Directory.Build.props | |||
@@ -2,5 +2,6 @@ | |||
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. --> | 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 | <Project> | 3 | <Project> |
4 | <Import Project="$(MsbuildThisFileDirectory)..\..\Directory.Build.props" /> | 4 | <Import Project="$(MsbuildThisFileDirectory)..\..\Directory.Build.props" /> |
5 | <Import Project="Wix.Build.props" Condition=" '$(MSBuildProjectExtension)'=='.wixproj' " /> | 5 | <Import Project="Directory.csproj.props" Condition=" '$(MSBuildProjectExtension)'=='.csproj' " /> |
6 | <Import Project="Directory.wixproj.props" Condition=" '$(MSBuildProjectExtension)'=='.wixproj' " /> | ||
6 | </Project> | 7 | </Project> |
diff --git a/src/ext/Bal/test/examples/Directory.Build.targets b/src/ext/Bal/test/examples/Directory.Build.targets index 35946585..b27a1a41 100644 --- a/src/ext/Bal/test/examples/Directory.Build.targets +++ b/src/ext/Bal/test/examples/Directory.Build.targets | |||
@@ -2,5 +2,6 @@ | |||
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. --> | 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 | <Project> | 3 | <Project> |
4 | <Import Project="$(MsbuildThisFileDirectory)..\..\..\..\Directory.Build.targets" /> | 4 | <Import Project="$(MsbuildThisFileDirectory)..\..\..\..\Directory.Build.targets" /> |
5 | <Import Project="Wix.Build.targets" Condition=" '$(MSBuildProjectExtension)'=='.wixproj' " /> | 5 | <Import Project="Directory.wixproj.targets" Condition=" '$(MSBuildProjectExtension)'=='.wixproj' " /> |
6 | <Import Project="DncBA.targets" Condition=" '$(IsDncBA)'=='true' " /> | ||
6 | </Project> | 7 | </Project> |
diff --git a/src/ext/Bal/test/examples/Directory.csproj.props b/src/ext/Bal/test/examples/Directory.csproj.props new file mode 100644 index 00000000..e314ca20 --- /dev/null +++ b/src/ext/Bal/test/examples/Directory.csproj.props | |||
@@ -0,0 +1,5 @@ | |||
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 | <Project> | ||
4 | <Import Project="$(MsbuildThisFileDirectory)..\..\WixToolset.Dnc.HostGenerator\build\WixToolset.Dnc.HostGenerator.props" /> | ||
5 | </Project> | ||
diff --git a/src/ext/Bal/test/examples/Wix.Build.props b/src/ext/Bal/test/examples/Directory.wixproj.props index 78ad462f..78ad462f 100644 --- a/src/ext/Bal/test/examples/Wix.Build.props +++ b/src/ext/Bal/test/examples/Directory.wixproj.props | |||
diff --git a/src/ext/Bal/test/examples/Wix.Build.targets b/src/ext/Bal/test/examples/Directory.wixproj.targets index 7e6fe9f2..7e6fe9f2 100644 --- a/src/ext/Bal/test/examples/Wix.Build.targets +++ b/src/ext/Bal/test/examples/Directory.wixproj.targets | |||
diff --git a/src/ext/Bal/test/examples/DncBA.targets b/src/ext/Bal/test/examples/DncBA.targets new file mode 100644 index 00000000..2b8c1428 --- /dev/null +++ b/src/ext/Bal/test/examples/DncBA.targets | |||
@@ -0,0 +1,19 @@ | |||
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 | <Project> | ||
4 | <Import Project="$(MsbuildThisFileDirectory)..\..\WixToolset.Dnc.HostGenerator\build\WixToolset.Dnc.HostGenerator.targets" /> | ||
5 | |||
6 | <PropertyGroup> | ||
7 | <ILLinkTreatWarningsAsErrors>false</ILLinkTreatWarningsAsErrors> | ||
8 | </PropertyGroup> | ||
9 | |||
10 | <ItemGroup> | ||
11 | <ProjectReference Include="$(MsbuildThisFileDirectory)..\..\WixToolset.Dnc.HostGenerator\WixToolset.Dnc.HostGenerator.csproj" | ||
12 | OutputItemType="Analyzer" | ||
13 | ReferenceOutputAssembly="false" /> | ||
14 | </ItemGroup> | ||
15 | |||
16 | <ItemGroup> | ||
17 | <PackageReference Include="WixToolset.Mba.Core" /> | ||
18 | </ItemGroup> | ||
19 | </Project> | ||
diff --git a/src/ext/Bal/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj b/src/ext/Bal/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj index 8069df45..9b9f2bf6 100644 --- a/src/ext/Bal/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj +++ b/src/ext/Bal/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj | |||
@@ -3,15 +3,7 @@ | |||
3 | <PropertyGroup> | 3 | <PropertyGroup> |
4 | <TargetFramework>netcoreapp3.1</TargetFramework> | 4 | <TargetFramework>netcoreapp3.1</TargetFramework> |
5 | <RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers> | 5 | <RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers> |
6 | <EnableDynamicLoading>true</EnableDynamicLoading> | 6 | <IsDncBA>true</IsDncBA> |
7 | <Description>Earliest .NET Core MBA</Description> | 7 | <Description>Earliest .NET Core MBA</Description> |
8 | </PropertyGroup> | 8 | </PropertyGroup> |
9 | |||
10 | <ItemGroup> | ||
11 | <TrimmerRootAssembly Include="System.Runtime.Loader" /> | ||
12 | </ItemGroup> | ||
13 | |||
14 | <ItemGroup> | ||
15 | <PackageReference Include="WixToolset.Mba.Core" /> | ||
16 | </ItemGroup> | ||
17 | </Project> | 9 | </Project> |
diff --git a/src/ext/Bal/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj b/src/ext/Bal/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj index aad56a3e..a884fa07 100644 --- a/src/ext/Bal/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj +++ b/src/ext/Bal/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj | |||
@@ -3,18 +3,7 @@ | |||
3 | <PropertyGroup> | 3 | <PropertyGroup> |
4 | <TargetFramework>net5.0</TargetFramework> | 4 | <TargetFramework>net5.0</TargetFramework> |
5 | <RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers> | 5 | <RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers> |
6 | <EnableDynamicLoading>true</EnableDynamicLoading> | 6 | <IsDncBA>true</IsDncBA> |
7 | <Description>Latest .NET Core MBA</Description> | 7 | <Description>Latest .NET Core MBA</Description> |
8 | </PropertyGroup> | 8 | </PropertyGroup> |
9 | |||
10 | <ItemGroup> | ||
11 | <TrimmerRootAssembly Include="System.Diagnostics.Tools" /> | ||
12 | <TrimmerRootAssembly Include="System.Runtime" /> | ||
13 | <TrimmerRootAssembly Include="System.Runtime.InteropServices" /> | ||
14 | <TrimmerRootAssembly Include="System.Runtime.Loader" /> | ||
15 | </ItemGroup> | ||
16 | |||
17 | <ItemGroup> | ||
18 | <PackageReference Include="WixToolset.Mba.Core" /> | ||
19 | </ItemGroup> | ||
20 | </Project> | 9 | </Project> |
diff --git a/src/ext/Bal/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj b/src/ext/Bal/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj index 3d63e7b9..3186148b 100644 --- a/src/ext/Bal/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj +++ b/src/ext/Bal/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj | |||
@@ -3,22 +3,8 @@ | |||
3 | <PropertyGroup> | 3 | <PropertyGroup> |
4 | <TargetFramework>net5.0-windows</TargetFramework> | 4 | <TargetFramework>net5.0-windows</TargetFramework> |
5 | <RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers> | 5 | <RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers> |
6 | <EnableDynamicLoading>true</EnableDynamicLoading> | 6 | <IsDncBA>true</IsDncBA> |
7 | <Description>WPF .NET Core MBA</Description> | 7 | <Description>WPF .NET Core MBA</Description> |
8 | <UseWPF>true</UseWPF> | 8 | <UseWPF>true</UseWPF> |
9 | </PropertyGroup> | 9 | </PropertyGroup> |
10 | |||
11 | <ItemGroup> | ||
12 | <PackageReference Include="WixToolset.Mba.Core" /> | ||
13 | </ItemGroup> | ||
14 | |||
15 | <Target Name="GitVersion"> | ||
16 | <PropertyGroup> | ||
17 | <GitBaseVersionMajor>42</GitBaseVersionMajor> | ||
18 | <GitBaseVersionMinor>42</GitBaseVersionMinor> | ||
19 | <GitBaseVersionPatch>42</GitBaseVersionPatch> | ||
20 | <GitCommits>42</GitCommits> | ||
21 | <GitSha>abc123def456</GitSha> | ||
22 | </PropertyGroup> | ||
23 | </Target> | ||
24 | </Project> | 10 | </Project> |
diff --git a/src/ext/Bal/test/examples/examples.proj b/src/ext/Bal/test/examples/examples.proj index 5722cfcb..a16af2a4 100644 --- a/src/ext/Bal/test/examples/examples.proj +++ b/src/ext/Bal/test/examples/examples.proj | |||
@@ -17,14 +17,15 @@ | |||
17 | <ItemGroup> | 17 | <ItemGroup> |
18 | <CoreMBAProject Include="$(EarliestCoreMBAProjectPath)"> | 18 | <CoreMBAProject Include="$(EarliestCoreMBAProjectPath)"> |
19 | <PublishPath>$(MBAPublishPath)Example.EarliestCoreMBA</PublishPath> | 19 | <PublishPath>$(MBAPublishPath)Example.EarliestCoreMBA</PublishPath> |
20 | <TrimMode>CopyUsed</TrimMode> | ||
20 | </CoreMBAProject> | 21 | </CoreMBAProject> |
21 | <CoreMBAProject Include="$(LatestCoreMBAProjectPath)"> | 22 | <CoreMBAProject Include="$(LatestCoreMBAProjectPath)"> |
22 | <PublishPath>$(MBAPublishPath)Example.LatestCoreMBA</PublishPath> | 23 | <PublishPath>$(MBAPublishPath)Example.LatestCoreMBA</PublishPath> |
24 | <TrimMode>Link</TrimMode> | ||
23 | </CoreMBAProject> | 25 | </CoreMBAProject> |
24 | <CoreMBAProject Include="$(WPFCoreMBAProjectPath)"> | 26 | <CoreMBAProject Include="$(WPFCoreMBAProjectPath)"> |
25 | <PublishPath>$(MBAPublishPath)Example.WPFCoreMBA</PublishPath> | 27 | <PublishPath>$(MBAPublishPath)Example.WPFCoreMBA</PublishPath> |
26 | <SkipSCD>true</SkipSCD> | 28 | <SkipSCD>true</SkipSCD> |
27 | <SkipTrimmedSCD>true</SkipTrimmedSCD> | ||
28 | </CoreMBAProject> | 29 | </CoreMBAProject> |
29 | 30 | ||
30 | <FullMBAProject Include="$(FullFramework2MBAProjectPath)" /> | 31 | <FullMBAProject Include="$(FullFramework2MBAProjectPath)" /> |
@@ -38,8 +39,8 @@ | |||
38 | Condition="'%(CoreMBAProject.SkipFDD)'==''" /> | 39 | Condition="'%(CoreMBAProject.SkipFDD)'==''" /> |
39 | <Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\scd" -r win-x86 -c $(Configuration) --self-contained true "%(CoreMBAProject.Identity)"' | 40 | <Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\scd" -r win-x86 -c $(Configuration) --self-contained true "%(CoreMBAProject.Identity)"' |
40 | Condition="'%(CoreMBAProject.SkipSCD)'==''" /> | 41 | 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 | <Exec Command='dotnet publish -o "%(CoreMBAProject.PublishPath)\trimmedscd" -r win-x86 -c $(Configuration) --self-contained true -p:PublishTrimmed=true -p:TrimMode=%(CoreMBAProject.TrimMode) "%(CoreMBAProject.Identity)"' |
42 | Condition="'%(CoreMBAProject.SkipTrimmedSCD)'==''" /> | 43 | Condition="'%(CoreMBAProject.TrimMode)'!=''" /> |
43 | </Target> | 44 | </Target> |
44 | 45 | ||
45 | <Target Name="Build" DependsOnTargets="PublishCoreExamples"> | 46 | <Target Name="Build" DependsOnTargets="PublishCoreExamples"> |