diff options
Diffstat (limited to 'src/test')
7 files changed, 24 insertions, 17 deletions
diff --git a/src/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj b/src/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj index 19fbd249..cb66c138 100644 --- a/src/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj +++ b/src/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj | |||
@@ -1,7 +1,7 @@ | |||
1 | <Project Sdk="Microsoft.NET.Sdk"> | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | ||
3 | <PropertyGroup> | 3 | <PropertyGroup> |
4 | <TargetFramework>netcoreapp3.0</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 | <EnableDynamicLoading>true</EnableDynamicLoading> |
7 | <Description>Earliest .NET Core MBA</Description> | 7 | <Description>Earliest .NET Core MBA</Description> |
@@ -13,6 +13,6 @@ | |||
13 | 13 | ||
14 | <ItemGroup> | 14 | <ItemGroup> |
15 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> | 15 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> |
16 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.41" /> | 16 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.*" /> |
17 | </ItemGroup> | 17 | </ItemGroup> |
18 | </Project> \ No newline at end of file | 18 | </Project> \ No newline at end of file |
diff --git a/src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj b/src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj index 20c5c65c..21079ed1 100644 --- a/src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj +++ b/src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj | |||
@@ -15,6 +15,6 @@ | |||
15 | </ItemGroup> | 15 | </ItemGroup> |
16 | 16 | ||
17 | <ItemGroup> | 17 | <ItemGroup> |
18 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.41" /> | 18 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.*" /> |
19 | </ItemGroup> | 19 | </ItemGroup> |
20 | </Project> \ No newline at end of file | 20 | </Project> \ No newline at end of file |
diff --git a/src/test/examples/FullFramework4MBA/Example.FullFramework4MBA.csproj b/src/test/examples/FullFramework4MBA/Example.FullFramework4MBA.csproj index fff76795..a05e7888 100644 --- a/src/test/examples/FullFramework4MBA/Example.FullFramework4MBA.csproj +++ b/src/test/examples/FullFramework4MBA/Example.FullFramework4MBA.csproj | |||
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | <ItemGroup> | 11 | <ItemGroup> |
12 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> | 12 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> |
13 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.41" PrivateAssets="All" /> | 13 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.*" PrivateAssets="All" /> |
14 | </ItemGroup> | 14 | </ItemGroup> |
15 | 15 | ||
16 | <ItemGroup> | 16 | <ItemGroup> |
diff --git a/src/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj b/src/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj index ccc642f0..9f3f02d9 100644 --- a/src/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj +++ b/src/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj | |||
@@ -1,23 +1,21 @@ | |||
1 | <Project Sdk="Microsoft.NET.Sdk"> | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | ||
3 | <PropertyGroup> | 3 | <PropertyGroup> |
4 | <TargetFramework>netcoreapp3.1</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 | <EnableDynamicLoading>true</EnableDynamicLoading> |
7 | <Description>Latest .NET Core MBA</Description> | 7 | <Description>Latest .NET Core MBA</Description> |
8 | </PropertyGroup> | 8 | </PropertyGroup> |
9 | 9 | ||
10 | <PropertyGroup Condition="'$(PublishTrimmed)'=='true'"> | ||
11 | <PublishReadyToRunShowWarnings>false</PublishReadyToRunShowWarnings> | ||
12 | <PublishReadyToRun>true</PublishReadyToRun> | ||
13 | </PropertyGroup> | ||
14 | |||
15 | <ItemGroup> | 10 | <ItemGroup> |
11 | <TrimmerRootAssembly Include="System.Diagnostics.Tools" /> | ||
12 | <TrimmerRootAssembly Include="System.Runtime" /> | ||
13 | <TrimmerRootAssembly Include="System.Runtime.InteropServices" /> | ||
16 | <TrimmerRootAssembly Include="System.Runtime.Loader" /> | 14 | <TrimmerRootAssembly Include="System.Runtime.Loader" /> |
17 | </ItemGroup> | 15 | </ItemGroup> |
18 | 16 | ||
19 | <ItemGroup> | 17 | <ItemGroup> |
20 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> | 18 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> |
21 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.41" /> | 19 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.*" /> |
22 | </ItemGroup> | 20 | </ItemGroup> |
23 | </Project> \ No newline at end of file | 21 | </Project> \ No newline at end of file |
diff --git a/src/test/examples/TestEngine/TestEngine.cpp b/src/test/examples/TestEngine/TestEngine.cpp index a6a21174..4c7ec1c3 100644 --- a/src/test/examples/TestEngine/TestEngine.cpp +++ b/src/test/examples/TestEngine/TestEngine.cpp | |||
@@ -69,11 +69,19 @@ LExit: | |||
69 | } | 69 | } |
70 | 70 | ||
71 | HRESULT TestEngine::Log( | 71 | HRESULT TestEngine::Log( |
72 | __in BOOTSTRAPPER_LOG_LEVEL level, | ||
72 | __in LPCWSTR wzMessage | 73 | __in LPCWSTR wzMessage |
73 | ) | 74 | ) |
74 | { | 75 | { |
75 | LogStringLine(REPORT_STANDARD, "%ls", wzMessage); | 76 | switch (level) |
76 | return ConsoleWriteLine(CONSOLE_COLOR_NORMAL, "%ls", wzMessage); | 77 | { |
78 | case BOOTSTRAPPER_LOG_LEVEL_NONE: | ||
79 | case BOOTSTRAPPER_LOG_LEVEL_DEBUG: | ||
80 | return S_OK; | ||
81 | default: | ||
82 | LogStringLine(REPORT_STANDARD, "%ls", wzMessage); | ||
83 | return ConsoleWriteLine(CONSOLE_COLOR_NORMAL, "%ls", wzMessage); | ||
84 | } | ||
77 | } | 85 | } |
78 | 86 | ||
79 | HRESULT TestEngine::RunApplication() | 87 | HRESULT TestEngine::RunApplication() |
@@ -169,7 +177,7 @@ HRESULT TestEngine::BAEngineLog( | |||
169 | __in BAENGINE_LOG_RESULTS* /*pResults*/ | 177 | __in BAENGINE_LOG_RESULTS* /*pResults*/ |
170 | ) | 178 | ) |
171 | { | 179 | { |
172 | return Log(pArgs->wzMessage); | 180 | return Log(pArgs->level, pArgs->wzMessage); |
173 | } | 181 | } |
174 | 182 | ||
175 | HRESULT TestEngine::BAEngineQuit( | 183 | HRESULT TestEngine::BAEngineQuit( |
diff --git a/src/test/examples/TestEngine/TestEngine.h b/src/test/examples/TestEngine/TestEngine.h index 14b69999..44e813bd 100644 --- a/src/test/examples/TestEngine/TestEngine.h +++ b/src/test/examples/TestEngine/TestEngine.h | |||
@@ -28,6 +28,7 @@ public: | |||
28 | ); | 28 | ); |
29 | 29 | ||
30 | HRESULT Log( | 30 | HRESULT Log( |
31 | __in BOOTSTRAPPER_LOG_LEVEL level, | ||
31 | __in LPCWSTR wzMessage | 32 | __in LPCWSTR wzMessage |
32 | ); | 33 | ); |
33 | 34 | ||
diff --git a/src/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj b/src/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj index b488159d..296e5be9 100644 --- a/src/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj +++ b/src/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj | |||
@@ -1,7 +1,7 @@ | |||
1 | <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
2 | 2 | ||
3 | <PropertyGroup> | 3 | <PropertyGroup> |
4 | <TargetFramework>netcoreapp3.1</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 | <EnableDynamicLoading>true</EnableDynamicLoading> |
7 | <Description>WPF .NET Core MBA</Description> | 7 | <Description>WPF .NET Core MBA</Description> |
@@ -11,6 +11,6 @@ | |||
11 | 11 | ||
12 | <ItemGroup> | 12 | <ItemGroup> |
13 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> | 13 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="all" /> |
14 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.41" /> | 14 | <PackageReference Include="WixToolset.Mba.Core" Version="4.0.*" /> |
15 | </ItemGroup> | 15 | </ItemGroup> |
16 | </Project> \ No newline at end of file | 16 | </Project> \ No newline at end of file |