diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-11-02 19:43:20 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-11-02 19:49:33 -0600 |
commit | 20ea356b2c0b4ab4d29778b4958d5b363f735f1f (patch) | |
tree | 64be40843e541eebe37ea0ffb5d7cb996f3ae699 /src | |
parent | 0031d5e8f859b342ac9860b7055bb738b6303ec0 (diff) | |
download | wix-20ea356b2c0b4ab4d29778b4958d5b363f735f1f.tar.gz wix-20ea356b2c0b4ab4d29778b4958d5b363f735f1f.tar.bz2 wix-20ea356b2c0b4ab4d29778b4958d5b363f735f1f.zip |
More .NET 5 updates.
Fix tests when running on machine with .NET 5.
Update frameworks for .NET Core MBA (3.1 vs 5.0).
Diffstat (limited to 'src')
-rw-r--r-- | src/dnchost/dnchost.vcxproj | 2 | ||||
-rw-r--r-- | src/dnchost/dncutil.cpp | 9 | ||||
-rw-r--r-- | src/dnchost/packages.config | 2 | ||||
-rw-r--r-- | src/test/examples/EarliestCoreMBA/Example.EarliestCoreMBA.csproj | 4 | ||||
-rw-r--r-- | src/test/examples/FullFramework2MBA/Example.FullFramework2MBA.csproj | 2 | ||||
-rw-r--r-- | src/test/examples/FullFramework4MBA/Example.FullFramework4MBA.csproj | 2 | ||||
-rw-r--r-- | src/test/examples/LatestCoreMBA/Example.LatestCoreMBA.csproj | 12 | ||||
-rw-r--r-- | src/test/examples/TestEngine/TestEngine.cpp | 14 | ||||
-rw-r--r-- | src/test/examples/TestEngine/TestEngine.h | 1 | ||||
-rw-r--r-- | src/test/examples/WPFCoreMBA/Example.WPFCoreMBA.csproj | 6 |
10 files changed, 34 insertions, 20 deletions
diff --git a/src/dnchost/dnchost.vcxproj b/src/dnchost/dnchost.vcxproj index c6c2360c..d46c3a59 100644 --- a/src/dnchost/dnchost.vcxproj +++ b/src/dnchost/dnchost.vcxproj | |||
@@ -28,7 +28,7 @@ | |||
28 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 28 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
30 | <PropertyGroup> | 30 | <PropertyGroup> |
31 | <NetHostPath>..\..\packages\runtime.win-x86.Microsoft.NETCore.DotNetAppHost.5.0.0-preview.7.20364.11\runtimes\win-x86\native\</NetHostPath> | 31 | <NetHostPath>..\..\packages\runtime.win-x86.Microsoft.NETCore.DotNetAppHost.5.0.0-rc.2.20475.5\runtimes\win-x86\native\</NetHostPath> |
32 | <ProjectAdditionalLinkLibraries>shlwapi.lib;$(NetHostPath)libnethost.lib</ProjectAdditionalLinkLibraries> | 32 | <ProjectAdditionalLinkLibraries>shlwapi.lib;$(NetHostPath)libnethost.lib</ProjectAdditionalLinkLibraries> |
33 | </PropertyGroup> | 33 | </PropertyGroup> |
34 | <ItemGroup> | 34 | <ItemGroup> |
diff --git a/src/dnchost/dncutil.cpp b/src/dnchost/dncutil.cpp index 4a82d961..89fe707f 100644 --- a/src/dnchost/dncutil.cpp +++ b/src/dnchost/dncutil.cpp | |||
@@ -182,7 +182,14 @@ static void HOSTFXR_CALLTYPE DnchostErrorWriter( | |||
182 | __in LPCWSTR wzMessage | 182 | __in LPCWSTR wzMessage |
183 | ) | 183 | ) |
184 | { | 184 | { |
185 | BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "error from hostfxr: %ls", wzMessage); | 185 | BOOTSTRAPPER_LOG_LEVEL level = BOOTSTRAPPER_LOG_LEVEL_ERROR; |
186 | |||
187 | if (CSTR_EQUAL == ::CompareString(LOCALE_INVARIANT, 0, wzMessage, -1, L"The requested delegate type is not available in the target framework.", -1)) | ||
188 | { | ||
189 | level = BOOTSTRAPPER_LOG_LEVEL_DEBUG; | ||
190 | } | ||
191 | |||
192 | BalLog(level, "error from hostfxr: %ls", wzMessage); | ||
186 | } | 193 | } |
187 | 194 | ||
188 | static HRESULT InitializeHostfxr( | 195 | static HRESULT InitializeHostfxr( |
diff --git a/src/dnchost/packages.config b/src/dnchost/packages.config index d40327be..113d005c 100644 --- a/src/dnchost/packages.config +++ b/src/dnchost/packages.config | |||
@@ -4,7 +4,7 @@ | |||
4 | <package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" /> | 4 | <package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" /> |
5 | <package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" /> | 5 | <package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" /> |
6 | <package id="Nerdbank.GitVersioning" version="3.3.37" targetFramework="native" developmentDependency="true" /> | 6 | <package id="Nerdbank.GitVersioning" version="3.3.37" targetFramework="native" developmentDependency="true" /> |
7 | <package id="runtime.win-x86.Microsoft.NETCore.DotNetAppHost" version="5.0.0-preview.7.20364.11" targetFramework="native" /> | 7 | <package id="runtime.win-x86.Microsoft.NETCore.DotNetAppHost" version="5.0.0-rc.2.20475.5" targetFramework="native" /> |
8 | <package id="WixToolset.BalUtil" version="4.0.41" targetFramework="native" /> | 8 | <package id="WixToolset.BalUtil" version="4.0.41" targetFramework="native" /> |
9 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.38" targetFramework="native" /> | 9 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.38" targetFramework="native" /> |
10 | <package id="WixToolset.DUtil" version="4.0.55" targetFramework="native" /> | 10 | <package id="WixToolset.DUtil" version="4.0.55" targetFramework="native" /> |
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 |