diff options
| author | Bob Arnson <bob@firegiant.com> | 2026-06-03 22:20:43 -0400 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2026-06-09 15:38:28 -0400 |
| commit | 318f5300cf4244d6eb440b00278c062f1da56e91 (patch) | |
| tree | a2c16f519e8acfae561920b8e3e20aa2215e3f91 /src/test | |
| parent | a5ec0724f3681bd3076a0b914e6a5f5e09ce1d40 (diff) | |
| download | wix-318f5300cf4244d6eb440b00278c062f1da56e91.tar.gz wix-318f5300cf4244d6eb440b00278c062f1da56e91.tar.bz2 wix-318f5300cf4244d6eb440b00278c062f1da56e91.zip | |
Target VS2026 and .NET 10 for WiX v8.
VS2022/v143 toolsets are no longer required.
Diffstat (limited to 'src/test')
40 files changed, 146 insertions, 115 deletions
diff --git a/src/test/burn/Directory.wixproj.props b/src/test/burn/Directory.wixproj.props index 9bda487e..56b5fec2 100644 --- a/src/test/burn/Directory.wixproj.props +++ b/src/test/burn/Directory.wixproj.props | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <TestGroupName Condition=" '$(TestGroupName)'=='' ">$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))))</TestGroupName> | 4 | <TestGroupName Condition=" '$(TestGroupName)'=='' ">$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))))</TestGroupName> |
| 5 | <BaseIntermediateOutputPath>$(BaseOutputPath)obj\$(TestGroupName)\$(ProjectName)\</BaseIntermediateOutputPath> | 5 | <BaseIntermediateOutputPath>$(BaseOutputPath)obj\$(TestGroupName)\$(ProjectName)\</BaseIntermediateOutputPath> |
| 6 | <OutputPath>$(OutputPath)net8.0-windows\TestData\$(TestGroupName)\</OutputPath> | 6 | <OutputPath>$(OutputPath)net10.0-windows\TestData\$(TestGroupName)\</OutputPath> |
| 7 | <DefaultCompressionLevel>None</DefaultCompressionLevel> | 7 | <DefaultCompressionLevel>None</DefaultCompressionLevel> |
| 8 | <CompilerAdditionalOptions>-wx</CompilerAdditionalOptions> | 8 | <CompilerAdditionalOptions>-wx</CompilerAdditionalOptions> |
| 9 | <SuppressSpecificWarnings>1154;$(SuppressSpecificWarnings)</SuppressSpecificWarnings> | 9 | <SuppressSpecificWarnings>1154;$(SuppressSpecificWarnings)</SuppressSpecificWarnings> |
diff --git a/src/test/burn/README.md b/src/test/burn/README.md index 28284737..542fc5b7 100644 --- a/src/test/burn/README.md +++ b/src/test/burn/README.md | |||
| @@ -10,8 +10,8 @@ They modify machine state so it's strongly recommended *not* to run these tests | |||
| 10 | They should be run on a VM instead, where you can easily roll back. | 10 | They should be run on a VM instead, where you can easily roll back. |
| 11 | 11 | ||
| 12 | 1. Run build.cmd to build everything (the tests will not automatically run). | 12 | 1. Run build.cmd to build everything (the tests will not automatically run). |
| 13 | 1. Copy the build\IntegrationBurn\Debug\net8.0-windows folder to your VM. | 13 | 1. Copy the build\IntegrationBurn\Debug\net10.0-windows folder to your VM. |
| 14 | 1. Open an elevated command prompt and navigate to the net8.0-windows folder. | 14 | 1. Open an elevated command prompt and navigate to the net10.0-windows folder. |
| 15 | 1. Run the runtests.cmd file to run the tests. | 15 | 1. Run the runtests.cmd file to run the tests. |
| 16 | 16 | ||
| 17 | You can modify the runtests.cmd to run specific tests. | 17 | You can modify the runtests.cmd to run specific tests. |
diff --git a/src/test/burn/TestBA/TestBA.csproj b/src/test/burn/TestBA/TestBA.csproj index e926833b..609bb5e5 100644 --- a/src/test/burn/TestBA/TestBA.csproj +++ b/src/test/burn/TestBA/TestBA.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFrameworks>net8.0-windows;net462</TargetFrameworks> | 6 | <TargetFrameworks>net10.0-windows;net462</TargetFrameworks> |
| 7 | <OutputType>WinExe</OutputType> | 7 | <OutputType>WinExe</OutputType> |
| 8 | <AssemblyName>TestBA</AssemblyName> | 8 | <AssemblyName>TestBA</AssemblyName> |
| 9 | <RootNamespace>WixToolset.Test.BA</RootNamespace> | 9 | <RootNamespace>WixToolset.Test.BA</RootNamespace> |
diff --git a/src/test/burn/TestBA/TestBA_x64.csproj b/src/test/burn/TestBA/TestBA_x64.csproj index d552f09e..71062f24 100644 --- a/src/test/burn/TestBA/TestBA_x64.csproj +++ b/src/test/burn/TestBA/TestBA_x64.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFrameworks>net8.0-windows;net462</TargetFrameworks> | 6 | <TargetFrameworks>net10.0-windows;net462</TargetFrameworks> |
| 7 | <OutputType>WinExe</OutputType> | 7 | <OutputType>WinExe</OutputType> |
| 8 | <AssemblyName>TestBA</AssemblyName> | 8 | <AssemblyName>TestBA</AssemblyName> |
| 9 | <RootNamespace>WixToolset.Test.BA</RootNamespace> | 9 | <RootNamespace>WixToolset.Test.BA</RootNamespace> |
diff --git a/src/test/burn/TestData/CacheTests/BundleC/BundleC.wixproj b/src/test/burn/TestData/CacheTests/BundleC/BundleC.wixproj index 2c414118..cf2ed285 100644 --- a/src/test/burn/TestData/CacheTests/BundleC/BundleC.wixproj +++ b/src/test/burn/TestData/CacheTests/BundleC/BundleC.wixproj | |||
| @@ -17,7 +17,7 @@ | |||
| 17 | </ItemGroup> | 17 | </ItemGroup> |
| 18 | <!-- We do this dynamically to avoid committing such a large file to source control. --> | 18 | <!-- We do this dynamically to avoid committing such a large file to source control. --> |
| 19 | <Target Name="CreateLargeFile" AfterTargets="BeforeBuild" Inputs="$(MSBuildProjectFullPath)" Outputs="$(MSBuildProjectDirectory)\fivegb.file"> | 19 | <Target Name="CreateLargeFile" AfterTargets="BeforeBuild" Inputs="$(MSBuildProjectFullPath)" Outputs="$(MSBuildProjectDirectory)\fivegb.file"> |
| 20 | <Exec Command='"$(BaseOutputPath)$(Configuration)\net8.0\win-x86\testexe.exe" /lf "fivegb.file|5368709120' WorkingDirectory="$(MSBuildProjectDirectory)" /> | 20 | <Exec Command='"$(BaseOutputPath)$(Configuration)\net10.0\win-x86\testexe.exe" /lf "fivegb.file|5368709120' WorkingDirectory="$(MSBuildProjectDirectory)" /> |
| 21 | </Target> | 21 | </Target> |
| 22 | <!-- We do this to avoid copying such a large file to the VM to run the tests. --> | 22 | <!-- We do this to avoid copying such a large file to the VM to run the tests. --> |
| 23 | <Target Name="DeleteLargeFile" AfterTargets="AfterBuild"> | 23 | <Target Name="DeleteLargeFile" AfterTargets="AfterBuild"> |
diff --git a/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj b/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj index 5060077d..b646d075 100644 --- a/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj +++ b/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj | |||
| @@ -17,8 +17,8 @@ | |||
| 17 | 17 | ||
| 18 | <!-- We do this dynamically to avoid committing so many files to source control. --> | 18 | <!-- We do this dynamically to avoid committing so many files to source control. --> |
| 19 | <Target Name="CreateThousandsOfFiles" AfterTargets="BeforeBuild"> | 19 | <Target Name="CreateThousandsOfFiles" AfterTargets="BeforeBuild"> |
| 20 | <Exec Command='"$(BaseOutputPath)$(Configuration)\net8.0\win-x86\testexe.exe" /gf "BAPayloads|10000' WorkingDirectory="$(MSBuildProjectDirectory)" /> | 20 | <Exec Command='"$(BaseOutputPath)$(Configuration)\net10.0\win-x86\testexe.exe" /gf "BAPayloads|10000' WorkingDirectory="$(MSBuildProjectDirectory)" /> |
| 21 | <Exec Command='"$(BaseOutputPath)$(Configuration)\net8.0\win-x86\testexe.exe" /gf "PackagePayloads|10000' WorkingDirectory="$(MSBuildProjectDirectory)" /> | 21 | <Exec Command='"$(BaseOutputPath)$(Configuration)\net10.0\win-x86\testexe.exe" /gf "PackagePayloads|10000' WorkingDirectory="$(MSBuildProjectDirectory)" /> |
| 22 | </Target> | 22 | </Target> |
| 23 | 23 | ||
| 24 | <Target Name="DeleteThousandsOfFiles" AfterTargets="AfterBuild"> | 24 | <Target Name="DeleteThousandsOfFiles" AfterTargets="AfterBuild"> |
diff --git a/src/test/burn/TestData/PrereqBaTests/BundleA/BundleA.wixproj b/src/test/burn/TestData/PrereqBaTests/BundleA/BundleA.wixproj index ce39322b..a2424b8c 100644 --- a/src/test/burn/TestData/PrereqBaTests/BundleA/BundleA.wixproj +++ b/src/test/burn/TestData/PrereqBaTests/BundleA/BundleA.wixproj | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | 9 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> |
| 10 | </ItemGroup> | 10 | </ItemGroup> |
| 11 | <ItemGroup> | 11 | <ItemGroup> |
| 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net8.0-windows\win-x86" BindName="dncx86" /> | 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net10.0-windows\win-x86" BindName="dncx86" /> |
| 13 | </ItemGroup> | 13 | </ItemGroup> |
| 14 | <ItemGroup> | 14 | <ItemGroup> |
| 15 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> | 15 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> |
diff --git a/src/test/burn/TestData/PrereqBaTests/BundleC/BundleC.wixproj b/src/test/burn/TestData/PrereqBaTests/BundleC/BundleC.wixproj index 118d8378..0f51b7f0 100644 --- a/src/test/burn/TestData/PrereqBaTests/BundleC/BundleC.wixproj +++ b/src/test/burn/TestData/PrereqBaTests/BundleC/BundleC.wixproj | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | 9 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> |
| 10 | </ItemGroup> | 10 | </ItemGroup> |
| 11 | <ItemGroup> | 11 | <ItemGroup> |
| 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net8.0-windows\win-x86" BindName="dncx86" /> | 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net10.0-windows\win-x86" BindName="dncx86" /> |
| 13 | </ItemGroup> | 13 | </ItemGroup> |
| 14 | <ItemGroup> | 14 | <ItemGroup> |
| 15 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> | 15 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> |
diff --git a/src/test/burn/TestData/PrereqBaTests/BundleE/BundleE.wixproj b/src/test/burn/TestData/PrereqBaTests/BundleE/BundleE.wixproj index ac1559ba..f67c6a84 100644 --- a/src/test/burn/TestData/PrereqBaTests/BundleE/BundleE.wixproj +++ b/src/test/burn/TestData/PrereqBaTests/BundleE/BundleE.wixproj | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> | 9 | <Compile Include="..\..\Templates\Bundle.wxs" Link="Bundle.wxs" /> |
| 10 | </ItemGroup> | 10 | </ItemGroup> |
| 11 | <ItemGroup> | 11 | <ItemGroup> |
| 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net8.0-windows\win-x86" BindName="dncx86" /> | 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net10.0-windows\win-x86" BindName="dncx86" /> |
| 13 | </ItemGroup> | 13 | </ItemGroup> |
| 14 | <ItemGroup> | 14 | <ItemGroup> |
| 15 | <ProjectReference Include="..\PrereqBaf\PrereqBaf.vcxproj" /> | 15 | <ProjectReference Include="..\PrereqBaf\PrereqBaf.vcxproj" /> |
diff --git a/src/test/burn/TestData/TestBA/TestBAWixlib/testbawixlib.wixproj b/src/test/burn/TestData/TestBA/TestBAWixlib/testbawixlib.wixproj index 5dae879d..7a6c6bfd 100644 --- a/src/test/burn/TestData/TestBA/TestBAWixlib/testbawixlib.wixproj +++ b/src/test/burn/TestData/TestBA/TestBAWixlib/testbawixlib.wixproj | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | <ItemGroup> | 8 | <ItemGroup> |
| 9 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net462\win-x86" BindName="net2x86" /> | 9 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net462\win-x86" BindName="net2x86" /> |
| 10 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net472\win-x86" BindName="net4x86" /> | 10 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net472\win-x86" BindName="net4x86" /> |
| 11 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net8.0-windows\win-x86" BindName="dncx86" /> | 11 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net10.0-windows\win-x86" BindName="dncx86" /> |
| 12 | </ItemGroup> | 12 | </ItemGroup> |
| 13 | <ItemGroup> | 13 | <ItemGroup> |
| 14 | <ProjectReference Include="..\..\..\TestBA\TestBA.csproj" /> | 14 | <ProjectReference Include="..\..\..\TestBA\TestBA.csproj" /> |
diff --git a/src/test/burn/TestData/TestBA/TestBAWixlib_x64/testbawixlib_x64.wixproj b/src/test/burn/TestData/TestBA/TestBAWixlib_x64/testbawixlib_x64.wixproj index 68141044..95c5a9b9 100644 --- a/src/test/burn/TestData/TestBA/TestBAWixlib_x64/testbawixlib_x64.wixproj +++ b/src/test/burn/TestData/TestBA/TestBAWixlib_x64/testbawixlib_x64.wixproj | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | <ItemGroup> | 9 | <ItemGroup> |
| 10 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net462\win-x64" BindName="net2x64" /> | 10 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net462\win-x64" BindName="net2x64" /> |
| 11 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net472\win-x64" BindName="net4x64" /> | 11 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net472\win-x64" BindName="net4x64" /> |
| 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net8.0-windows\win-x64" BindName="dncx64" /> | 12 | <BindInputPaths Include="$(BaseOutputPath)$(Configuration)\net10.0-windows\win-x64" BindName="dncx64" /> |
| 13 | </ItemGroup> | 13 | </ItemGroup> |
| 14 | <ItemGroup> | 14 | <ItemGroup> |
| 15 | <ProjectReference Include="..\..\..\TestBA\TestBA_x64.csproj" /> | 15 | <ProjectReference Include="..\..\..\TestBA\TestBA_x64.csproj" /> |
diff --git a/src/test/burn/TestData/WixIuiBaTests/InternalUIBundle/Bundle.wxs b/src/test/burn/TestData/WixIuiBaTests/InternalUIBundle/Bundle.wxs index 89efe183..55882340 100644 --- a/src/test/burn/TestData/WixIuiBaTests/InternalUIBundle/Bundle.wxs +++ b/src/test/burn/TestData/WixIuiBaTests/InternalUIBundle/Bundle.wxs | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | 10 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> |
| 11 | <!-- The only difference from the template should be the SplashScreen and uncompressed --> | 11 | <!-- The only difference from the template should be the SplashScreen and uncompressed --> |
| 12 | <Bundle Name="~$(var.TestGroupName) - $(var.BundleName)" Version="$(var.TestVersion)" UpgradeCode="$(var.UpgradeCode)" Compressed="no" SplashScreenSourceFile="..\..\Manual\BafThmutilTesting\theme\star_transparent.bmp"> | 12 | <Bundle Name="~$(var.TestGroupName) - $(var.BundleName)" Version="$(var.TestVersion)" UpgradeCode="$(var.UpgradeCode)" Compressed="no" SplashScreenSourceFile="..\..\Manual\BafThmutilTesting\theme\star_transparent.bmp" IconSourceFile="..\..\WixStdBaTests\BundleA\test.ico"> |
| 13 | <Log Prefix="$(var.BundleLogDirectory)\~$(var.TestGroupName)_$(var.BundleName)" /> | 13 | <Log Prefix="$(var.BundleLogDirectory)\~$(var.TestGroupName)_$(var.BundleName)" /> |
| 14 | 14 | ||
| 15 | <Variable Name="TestGroupName" Value="$(var.TestGroupName)" /> | 15 | <Variable Name="TestGroupName" Value="$(var.TestGroupName)" /> |
diff --git a/src/test/burn/TestExe/TestExe.csproj b/src/test/burn/TestExe/TestExe.csproj index 9b88e195..4ed3d7e1 100644 --- a/src/test/burn/TestExe/TestExe.csproj +++ b/src/test/burn/TestExe/TestExe.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFrameworks>net8.0;net462</TargetFrameworks> | 6 | <TargetFrameworks>net10.0;net462</TargetFrameworks> |
| 7 | <AssemblyName>TestExe</AssemblyName> | 7 | <AssemblyName>TestExe</AssemblyName> |
| 8 | <RootNamespace>TestExe</RootNamespace> | 8 | <RootNamespace>TestExe</RootNamespace> |
| 9 | <OutputType>Exe</OutputType> | 9 | <OutputType>Exe</OutputType> |
diff --git a/src/test/burn/WixTestTools/WixTestTools.csproj b/src/test/burn/WixTestTools/WixTestTools.csproj index 619ec974..ad516bc4 100644 --- a/src/test/burn/WixTestTools/WixTestTools.csproj +++ b/src/test/burn/WixTestTools/WixTestTools.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFramework>net8.0-windows</TargetFramework> | 6 | <TargetFramework>net10.0-windows</TargetFramework> |
| 7 | <PlatformTarget>x64</PlatformTarget> | 7 | <PlatformTarget>x64</PlatformTarget> |
| 8 | <IsWixTestSupportProject>true</IsWixTestSupportProject> | 8 | <IsWixTestSupportProject>true</IsWixTestSupportProject> |
| 9 | </PropertyGroup> | 9 | </PropertyGroup> |
diff --git a/src/test/burn/WixToolset.WixBA/WixToolset.WixBA.csproj b/src/test/burn/WixToolset.WixBA/WixToolset.WixBA.csproj index b821e32e..f6d1034b 100644 --- a/src/test/burn/WixToolset.WixBA/WixToolset.WixBA.csproj +++ b/src/test/burn/WixToolset.WixBA/WixToolset.WixBA.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFrameworks>net8.0-windows;net472</TargetFrameworks> | 6 | <TargetFrameworks>net10.0-windows;net472</TargetFrameworks> |
| 7 | <OutputType>WinExe</OutputType> | 7 | <OutputType>WinExe</OutputType> |
| 8 | <AssemblyName>WixToolset.WixBA</AssemblyName> | 8 | <AssemblyName>WixToolset.WixBA</AssemblyName> |
| 9 | <RootNamespace>WixToolset.WixBA</RootNamespace> | 9 | <RootNamespace>WixToolset.WixBA</RootNamespace> |
diff --git a/src/test/burn/WixToolset.WixBA/WixToolset.WixBA_x64.csproj b/src/test/burn/WixToolset.WixBA/WixToolset.WixBA_x64.csproj index 44d030a5..d7166f2a 100644 --- a/src/test/burn/WixToolset.WixBA/WixToolset.WixBA_x64.csproj +++ b/src/test/burn/WixToolset.WixBA/WixToolset.WixBA_x64.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFrameworks>net8.0-windows;net472</TargetFrameworks> | 6 | <TargetFrameworks>net10.0-windows;net472</TargetFrameworks> |
| 7 | <OutputType>WinExe</OutputType> | 7 | <OutputType>WinExe</OutputType> |
| 8 | <AssemblyName>WixToolset.WixBA</AssemblyName> | 8 | <AssemblyName>WixToolset.WixBA</AssemblyName> |
| 9 | <RootNamespace>WixToolset.WixBA</RootNamespace> | 9 | <RootNamespace>WixToolset.WixBA</RootNamespace> |
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/WixToolsetTest.BurnE2E.csproj b/src/test/burn/WixToolsetTest.BurnE2E/WixToolsetTest.BurnE2E.csproj index 1d9615bb..593bfdc3 100644 --- a/src/test/burn/WixToolsetTest.BurnE2E/WixToolsetTest.BurnE2E.csproj +++ b/src/test/burn/WixToolsetTest.BurnE2E/WixToolsetTest.BurnE2E.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFramework>net8.0-windows</TargetFramework> | 6 | <TargetFramework>net10.0-windows</TargetFramework> |
| 7 | <PlatformTarget>x64</PlatformTarget> | 7 | <PlatformTarget>x64</PlatformTarget> |
| 8 | <IsWixTestProject>true</IsWixTestProject> | 8 | <IsWixTestProject>true</IsWixTestProject> |
| 9 | </PropertyGroup> | 9 | </PropertyGroup> |
diff --git a/src/test/burn/test_burn.cmd b/src/test/burn/test_burn.cmd index 3f03216b..96ded4f5 100644 --- a/src/test/burn/test_burn.cmd +++ b/src/test/burn/test_burn.cmd | |||
| @@ -17,8 +17,8 @@ msbuild -Restore -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test | |||
| 17 | msbuild -Restore TestData\TestData.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test_burn_data_build.binlog || exit /b | 17 | msbuild -Restore TestData\TestData.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test_burn_data_build.binlog || exit /b |
| 18 | msbuild -Restore TestData6\TestData6.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test_burn_data6_build.binlog || exit /b | 18 | msbuild -Restore TestData6\TestData6.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\test_burn_data6_build.binlog || exit /b |
| 19 | 19 | ||
| 20 | "%_B%\net462\win-x86\testexe.exe" /dm "%_B%\net8.0-windows\testhost.exe" | 20 | "%_B%\net462\win-x86\testexe.exe" /dm "%_B%\net10.0-windows\testhost.exe" |
| 21 | mt.exe -manifest "WixToolsetTest.BurnE2E\testhost.longpathaware.manifest" -updateresource:"%_B%\net8.0-windows\testhost.exe" | 21 | mt.exe -manifest "WixToolsetTest.BurnE2E\testhost.longpathaware.manifest" -updateresource:"%_B%\net10.0-windows\testhost.exe" |
| 22 | 22 | ||
| 23 | @if not "%RuntimeTestsEnabled%"=="true" goto :LExit | 23 | @if not "%RuntimeTestsEnabled%"=="true" goto :LExit |
| 24 | 24 | ||
diff --git a/src/test/msi/Directory.wixproj.props b/src/test/msi/Directory.wixproj.props index 9325dcb6..6108ed4d 100644 --- a/src/test/msi/Directory.wixproj.props +++ b/src/test/msi/Directory.wixproj.props | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <TestGroupName Condition=" '$(TestGroupName)'=='' ">$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))))</TestGroupName> | 4 | <TestGroupName Condition=" '$(TestGroupName)'=='' ">$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))))</TestGroupName> |
| 5 | <BaseIntermediateOutputPath>$(BaseOutputPath)obj\$(TestGroupName)\$(ProjectName)\</BaseIntermediateOutputPath> | 5 | <BaseIntermediateOutputPath>$(BaseOutputPath)obj\$(TestGroupName)\$(ProjectName)\</BaseIntermediateOutputPath> |
| 6 | <OutputPath>$(OutputPath)net8.0-windows\TestData\$(TestGroupName)\</OutputPath> | 6 | <OutputPath>$(OutputPath)net10.0-windows\TestData\$(TestGroupName)\</OutputPath> |
| 7 | <DefaultCompressionLevel>None</DefaultCompressionLevel> | 7 | <DefaultCompressionLevel>None</DefaultCompressionLevel> |
| 8 | <CompilerAdditionalOptions>-wx</CompilerAdditionalOptions> | 8 | <CompilerAdditionalOptions>-wx</CompilerAdditionalOptions> |
| 9 | <SuppressValidation>true</SuppressValidation> | 9 | <SuppressValidation>true</SuppressValidation> |
diff --git a/src/test/msi/README.md b/src/test/msi/README.md index bb7d9ee4..8e7296a6 100644 --- a/src/test/msi/README.md +++ b/src/test/msi/README.md | |||
| @@ -10,8 +10,8 @@ They modify machine state so it's strongly recommended *not* to run these tests | |||
| 10 | They should be run on a VM instead, where you can easily roll back. | 10 | They should be run on a VM instead, where you can easily roll back. |
| 11 | 11 | ||
| 12 | 1. Run build.cmd to build everything (the tests will not automatically run). | 12 | 1. Run build.cmd to build everything (the tests will not automatically run). |
| 13 | 1. Copy the build\IntegrationMsi\Debug\net8.0-windows folder to your VM. | 13 | 1. Copy the build\IntegrationMsi\Debug\net10.0-windows folder to your VM. |
| 14 | 1. Open an elevated command prompt and navigate to the net8.0-windows folder. | 14 | 1. Open an elevated command prompt and navigate to the net10.0-windows folder. |
| 15 | 1. Run the runtests.cmd file to run the tests. | 15 | 1. Run the runtests.cmd file to run the tests. |
| 16 | 16 | ||
| 17 | You can modify the runtests.cmd to run specific tests. | 17 | You can modify the runtests.cmd to run specific tests. |
diff --git a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj index d2e7b2b6..0678cacc 100644 --- a/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj +++ b/src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNative/TestComponentNative.vcxproj | |||
| @@ -28,25 +28,25 @@ | |||
| 28 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | 28 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
| 29 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 29 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 30 | <UseDebugLibraries>true</UseDebugLibraries> | 30 | <UseDebugLibraries>true</UseDebugLibraries> |
| 31 | <PlatformToolset>v143</PlatformToolset> | 31 | <PlatformToolset>v145</PlatformToolset> |
| 32 | <CharacterSet>Unicode</CharacterSet> | 32 | <CharacterSet>Unicode</CharacterSet> |
| 33 | </PropertyGroup> | 33 | </PropertyGroup> |
| 34 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | 34 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
| 35 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 35 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 36 | <UseDebugLibraries>false</UseDebugLibraries> | 36 | <UseDebugLibraries>false</UseDebugLibraries> |
| 37 | <PlatformToolset>v143</PlatformToolset> | 37 | <PlatformToolset>v145</PlatformToolset> |
| 38 | <CharacterSet>Unicode</CharacterSet> | 38 | <CharacterSet>Unicode</CharacterSet> |
| 39 | </PropertyGroup> | 39 | </PropertyGroup> |
| 40 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | 40 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
| 41 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 41 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 42 | <UseDebugLibraries>true</UseDebugLibraries> | 42 | <UseDebugLibraries>true</UseDebugLibraries> |
| 43 | <PlatformToolset>v143</PlatformToolset> | 43 | <PlatformToolset>v145</PlatformToolset> |
| 44 | <CharacterSet>Unicode</CharacterSet> | 44 | <CharacterSet>Unicode</CharacterSet> |
| 45 | </PropertyGroup> | 45 | </PropertyGroup> |
| 46 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | 46 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
| 47 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 47 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 48 | <UseDebugLibraries>false</UseDebugLibraries> | 48 | <UseDebugLibraries>false</UseDebugLibraries> |
| 49 | <PlatformToolset>v143</PlatformToolset> | 49 | <PlatformToolset>v145</PlatformToolset> |
| 50 | <CharacterSet>Unicode</CharacterSet> | 50 | <CharacterSet>Unicode</CharacterSet> |
| 51 | </PropertyGroup> | 51 | </PropertyGroup> |
| 52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| @@ -288,4 +288,4 @@ | |||
| 288 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 288 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 289 | <ImportGroup Label="ExtensionTargets"> | 289 | <ImportGroup Label="ExtensionTargets"> |
| 290 | </ImportGroup> | 290 | </ImportGroup> |
| 291 | </Project> \ No newline at end of file | 291 | </Project> |
diff --git a/src/test/msi/WixToolsetTest.MsiE2E/WixToolsetTest.MsiE2E.csproj b/src/test/msi/WixToolsetTest.MsiE2E/WixToolsetTest.MsiE2E.csproj index f0bf8a5d..f73e5a58 100644 --- a/src/test/msi/WixToolsetTest.MsiE2E/WixToolsetTest.MsiE2E.csproj +++ b/src/test/msi/WixToolsetTest.MsiE2E/WixToolsetTest.MsiE2E.csproj | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFramework>net8.0-windows</TargetFramework> | 6 | <TargetFramework>net10.0-windows</TargetFramework> |
| 7 | <PlatformTarget>x64</PlatformTarget> | 7 | <PlatformTarget>x64</PlatformTarget> |
| 8 | <IsWixTestProject>true</IsWixTestProject> | 8 | <IsWixTestProject>true</IsWixTestProject> |
| 9 | </PropertyGroup> | 9 | </PropertyGroup> |
diff --git a/src/test/sandbox/setup_sandbox.bat b/src/test/sandbox/setup_sandbox.bat index fac7ec4c..f1293aba 100644 --- a/src/test/sandbox/setup_sandbox.bat +++ b/src/test/sandbox/setup_sandbox.bat | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | @setlocal enabledelayedexpansion | 1 | @setlocal enabledelayedexpansion |
| 2 | @echo off | 2 | @echo off |
| 3 | SET DOTNET_VERSION=8.0 | 3 | SET DOTNET_VERSION=10.0 |
| 4 | 4 | ||
| 5 | :MENU | 5 | :MENU |
| 6 | cls | 6 | cls |
diff --git a/src/test/test.cmd b/src/test/test.cmd index 75ced392..7c363ba3 100644 --- a/src/test/test.cmd +++ b/src/test/test.cmd | |||
| @@ -13,8 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | @call burn\test_burn.cmd %_C% %_T% || exit /b | 14 | @call burn\test_burn.cmd %_C% %_T% || exit /b |
| 15 | @call msi\test_msi.cmd %_C% %_T% || exit /b | 15 | @call msi\test_msi.cmd %_C% %_T% || exit /b |
| 16 | 16 | @call wix\test_wix.cmd %_C% %_T% || exit /b | |
| 17 | dotnet test wix -c %_C% --nologo -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.WixE2ETests.trx" || exit /b | ||
| 18 | 17 | ||
| 19 | @popd | 18 | @popd |
| 20 | @endlocal | 19 | @endlocal |
diff --git a/src/test/wix/TestData/CsprojClassLibraryMultiFramework/CsprojClassLibraryMultiFramework.csproj b/src/test/wix/TestData/CsprojClassLibraryMultiFramework/CsprojClassLibraryMultiFramework.csproj index 3fc6a7c8..9ee22a81 100644 --- a/src/test/wix/TestData/CsprojClassLibraryMultiFramework/CsprojClassLibraryMultiFramework.csproj +++ b/src/test/wix/TestData/CsprojClassLibraryMultiFramework/CsprojClassLibraryMultiFramework.csproj | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <Project Sdk="Microsoft.NET.Sdk"> | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | 2 | ||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <TargetFrameworks>net8.0;net472</TargetFrameworks> | 4 | <TargetFrameworks>net10.0;net472</TargetFrameworks> |
| 5 | <DebugType>embedded</DebugType> | 5 | <DebugType>embedded</DebugType> |
| 6 | </PropertyGroup> | 6 | </PropertyGroup> |
| 7 | 7 | ||
diff --git a/src/test/wix/TestData/CsprojClassLibraryMultiTarget/CsprojClassLibraryMultiTarget.csproj b/src/test/wix/TestData/CsprojClassLibraryMultiTarget/CsprojClassLibraryMultiTarget.csproj index aa5782dd..c2693a75 100644 --- a/src/test/wix/TestData/CsprojClassLibraryMultiTarget/CsprojClassLibraryMultiTarget.csproj +++ b/src/test/wix/TestData/CsprojClassLibraryMultiTarget/CsprojClassLibraryMultiTarget.csproj | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <Project Sdk="Microsoft.NET.Sdk"> | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | 2 | ||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <TargetFrameworks>net8.0;net472</TargetFrameworks> | 4 | <TargetFrameworks>net10.0;net472</TargetFrameworks> |
| 5 | </PropertyGroup> | 5 | </PropertyGroup> |
| 6 | 6 | ||
| 7 | <ItemGroup> | 7 | <ItemGroup> |
diff --git a/src/test/wix/TestData/CsprojConsoleMultiFramework/CsprojConsoleMultiFramework.csproj b/src/test/wix/TestData/CsprojConsoleMultiFramework/CsprojConsoleMultiFramework.csproj index 095a48bd..0cdbdc3b 100644 --- a/src/test/wix/TestData/CsprojConsoleMultiFramework/CsprojConsoleMultiFramework.csproj +++ b/src/test/wix/TestData/CsprojConsoleMultiFramework/CsprojConsoleMultiFramework.csproj | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <OutputType>Exe</OutputType> | 4 | <OutputType>Exe</OutputType> |
| 5 | <TargetFrameworks>net8.0;net472</TargetFrameworks> | 5 | <TargetFrameworks>net10.0;net472</TargetFrameworks> |
| 6 | <RuntimeIdentifiers>win-x86</RuntimeIdentifiers> | 6 | <RuntimeIdentifiers>win-x86</RuntimeIdentifiers> |
| 7 | </PropertyGroup> | 7 | </PropertyGroup> |
| 8 | 8 | ||
diff --git a/src/test/wix/TestData/CsprojConsoleNetCore/CsprojConsoleNetCore.csproj b/src/test/wix/TestData/CsprojConsoleNetCore/CsprojConsoleNetCore.csproj index 8dd47979..815e7c6a 100644 --- a/src/test/wix/TestData/CsprojConsoleNetCore/CsprojConsoleNetCore.csproj +++ b/src/test/wix/TestData/CsprojConsoleNetCore/CsprojConsoleNetCore.csproj | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <OutputType>Exe</OutputType> | 4 | <OutputType>Exe</OutputType> |
| 5 | <TargetFramework>net8.0</TargetFramework> | 5 | <TargetFramework>net10.0</TargetFramework> |
| 6 | <RuntimeIdentifiers>win-x86</RuntimeIdentifiers> | 6 | <RuntimeIdentifiers>win-x86</RuntimeIdentifiers> |
| 7 | </PropertyGroup> | 7 | </PropertyGroup> |
| 8 | 8 | ||
diff --git a/src/test/wix/TestData/CsprojWebApplicationNetCore/CsprojWebApplicationNetCore.csproj b/src/test/wix/TestData/CsprojWebApplicationNetCore/CsprojWebApplicationNetCore.csproj index cae0d3a6..de0517db 100644 --- a/src/test/wix/TestData/CsprojWebApplicationNetCore/CsprojWebApplicationNetCore.csproj +++ b/src/test/wix/TestData/CsprojWebApplicationNetCore/CsprojWebApplicationNetCore.csproj | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <Project Sdk="Microsoft.NET.Sdk.Web"> | 1 | <Project Sdk="Microsoft.NET.Sdk.Web"> |
| 2 | 2 | ||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <TargetFramework>net8.0</TargetFramework> | 4 | <TargetFramework>net10.0</TargetFramework> |
| 5 | </PropertyGroup> | 5 | </PropertyGroup> |
| 6 | 6 | ||
| 7 | <ItemGroup> | 7 | <ItemGroup> |
diff --git a/src/test/wix/TestData/CsprojWpfNetCore/CsprojWpfNetCore.csproj b/src/test/wix/TestData/CsprojWpfNetCore/CsprojWpfNetCore.csproj index b1bf8781..56902842 100644 --- a/src/test/wix/TestData/CsprojWpfNetCore/CsprojWpfNetCore.csproj +++ b/src/test/wix/TestData/CsprojWpfNetCore/CsprojWpfNetCore.csproj | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | <PropertyGroup> | 3 | <PropertyGroup> |
| 4 | <OutputType>WinExe</OutputType> | 4 | <OutputType>WinExe</OutputType> |
| 5 | <TargetFramework>net8.0-windows7.0</TargetFramework> | 5 | <TargetFramework>net10.0-windows7.0</TargetFramework> |
| 6 | <Nullable>enable</Nullable> | 6 | <Nullable>enable</Nullable> |
| 7 | <UseWPF>true</UseWPF> | 7 | <UseWPF>true</UseWPF> |
| 8 | </PropertyGroup> | 8 | </PropertyGroup> |
diff --git a/src/test/wix/TestData/VcxprojConsoleApplication/VcxprojConsoleApplication.vcxproj b/src/test/wix/TestData/VcxprojConsoleApplication/VcxprojConsoleApplication.vcxproj index 46ca4efd..1923687d 100644 --- a/src/test/wix/TestData/VcxprojConsoleApplication/VcxprojConsoleApplication.vcxproj +++ b/src/test/wix/TestData/VcxprojConsoleApplication/VcxprojConsoleApplication.vcxproj | |||
| @@ -29,26 +29,26 @@ | |||
| 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
| 30 | <ConfigurationType>Application</ConfigurationType> | 30 | <ConfigurationType>Application</ConfigurationType> |
| 31 | <UseDebugLibraries>true</UseDebugLibraries> | 31 | <UseDebugLibraries>true</UseDebugLibraries> |
| 32 | <PlatformToolset>v143</PlatformToolset> | 32 | <PlatformToolset>v145</PlatformToolset> |
| 33 | <CharacterSet>Unicode</CharacterSet> | 33 | <CharacterSet>Unicode</CharacterSet> |
| 34 | </PropertyGroup> | 34 | </PropertyGroup> |
| 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
| 36 | <ConfigurationType>Application</ConfigurationType> | 36 | <ConfigurationType>Application</ConfigurationType> |
| 37 | <UseDebugLibraries>false</UseDebugLibraries> | 37 | <UseDebugLibraries>false</UseDebugLibraries> |
| 38 | <PlatformToolset>v143</PlatformToolset> | 38 | <PlatformToolset>v145</PlatformToolset> |
| 39 | <WholeProgramOptimization>true</WholeProgramOptimization> | 39 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 40 | <CharacterSet>Unicode</CharacterSet> | 40 | <CharacterSet>Unicode</CharacterSet> |
| 41 | </PropertyGroup> | 41 | </PropertyGroup> |
| 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
| 43 | <ConfigurationType>Application</ConfigurationType> | 43 | <ConfigurationType>Application</ConfigurationType> |
| 44 | <UseDebugLibraries>true</UseDebugLibraries> | 44 | <UseDebugLibraries>true</UseDebugLibraries> |
| 45 | <PlatformToolset>v143</PlatformToolset> | 45 | <PlatformToolset>v145</PlatformToolset> |
| 46 | <CharacterSet>Unicode</CharacterSet> | 46 | <CharacterSet>Unicode</CharacterSet> |
| 47 | </PropertyGroup> | 47 | </PropertyGroup> |
| 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
| 49 | <ConfigurationType>Application</ConfigurationType> | 49 | <ConfigurationType>Application</ConfigurationType> |
| 50 | <UseDebugLibraries>false</UseDebugLibraries> | 50 | <UseDebugLibraries>false</UseDebugLibraries> |
| 51 | <PlatformToolset>v143</PlatformToolset> | 51 | <PlatformToolset>v145</PlatformToolset> |
| 52 | <WholeProgramOptimization>true</WholeProgramOptimization> | 52 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 53 | <CharacterSet>Unicode</CharacterSet> | 53 | <CharacterSet>Unicode</CharacterSet> |
| 54 | </PropertyGroup> | 54 | </PropertyGroup> |
| @@ -144,4 +144,4 @@ | |||
| 144 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 144 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 145 | <ImportGroup Label="ExtensionTargets"> | 145 | <ImportGroup Label="ExtensionTargets"> |
| 146 | </ImportGroup> | 146 | </ImportGroup> |
| 147 | </Project> \ No newline at end of file | 147 | </Project> |
diff --git a/src/test/wix/TestData/VcxprojDll/VcxprojDll.vcxproj b/src/test/wix/TestData/VcxprojDll/VcxprojDll.vcxproj index f889409e..a0fc6c0c 100644 --- a/src/test/wix/TestData/VcxprojDll/VcxprojDll.vcxproj +++ b/src/test/wix/TestData/VcxprojDll/VcxprojDll.vcxproj | |||
| @@ -29,26 +29,26 @@ | |||
| 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
| 30 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 30 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 31 | <UseDebugLibraries>true</UseDebugLibraries> | 31 | <UseDebugLibraries>true</UseDebugLibraries> |
| 32 | <PlatformToolset>v143</PlatformToolset> | 32 | <PlatformToolset>v145</PlatformToolset> |
| 33 | <CharacterSet>Unicode</CharacterSet> | 33 | <CharacterSet>Unicode</CharacterSet> |
| 34 | </PropertyGroup> | 34 | </PropertyGroup> |
| 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
| 36 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 36 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 37 | <UseDebugLibraries>false</UseDebugLibraries> | 37 | <UseDebugLibraries>false</UseDebugLibraries> |
| 38 | <PlatformToolset>v143</PlatformToolset> | 38 | <PlatformToolset>v145</PlatformToolset> |
| 39 | <WholeProgramOptimization>true</WholeProgramOptimization> | 39 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 40 | <CharacterSet>Unicode</CharacterSet> | 40 | <CharacterSet>Unicode</CharacterSet> |
| 41 | </PropertyGroup> | 41 | </PropertyGroup> |
| 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
| 43 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 43 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 44 | <UseDebugLibraries>true</UseDebugLibraries> | 44 | <UseDebugLibraries>true</UseDebugLibraries> |
| 45 | <PlatformToolset>v143</PlatformToolset> | 45 | <PlatformToolset>v145</PlatformToolset> |
| 46 | <CharacterSet>Unicode</CharacterSet> | 46 | <CharacterSet>Unicode</CharacterSet> |
| 47 | </PropertyGroup> | 47 | </PropertyGroup> |
| 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
| 49 | <ConfigurationType>DynamicLibrary</ConfigurationType> | 49 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 50 | <UseDebugLibraries>false</UseDebugLibraries> | 50 | <UseDebugLibraries>false</UseDebugLibraries> |
| 51 | <PlatformToolset>v143</PlatformToolset> | 51 | <PlatformToolset>v145</PlatformToolset> |
| 52 | <WholeProgramOptimization>true</WholeProgramOptimization> | 52 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 53 | <CharacterSet>Unicode</CharacterSet> | 53 | <CharacterSet>Unicode</CharacterSet> |
| 54 | </PropertyGroup> | 54 | </PropertyGroup> |
| @@ -171,4 +171,4 @@ | |||
| 171 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 171 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 172 | <ImportGroup Label="ExtensionTargets"> | 172 | <ImportGroup Label="ExtensionTargets"> |
| 173 | </ImportGroup> | 173 | </ImportGroup> |
| 174 | </Project> \ No newline at end of file | 174 | </Project> |
diff --git a/src/test/wix/TestData/VcxprojStaticLib/VcxprojStaticLib.vcxproj b/src/test/wix/TestData/VcxprojStaticLib/VcxprojStaticLib.vcxproj index 0094f9bd..cd02f692 100644 --- a/src/test/wix/TestData/VcxprojStaticLib/VcxprojStaticLib.vcxproj +++ b/src/test/wix/TestData/VcxprojStaticLib/VcxprojStaticLib.vcxproj | |||
| @@ -29,26 +29,26 @@ | |||
| 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
| 30 | <ConfigurationType>StaticLibrary</ConfigurationType> | 30 | <ConfigurationType>StaticLibrary</ConfigurationType> |
| 31 | <UseDebugLibraries>true</UseDebugLibraries> | 31 | <UseDebugLibraries>true</UseDebugLibraries> |
| 32 | <PlatformToolset>v143</PlatformToolset> | 32 | <PlatformToolset>v145</PlatformToolset> |
| 33 | <CharacterSet>Unicode</CharacterSet> | 33 | <CharacterSet>Unicode</CharacterSet> |
| 34 | </PropertyGroup> | 34 | </PropertyGroup> |
| 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
| 36 | <ConfigurationType>StaticLibrary</ConfigurationType> | 36 | <ConfigurationType>StaticLibrary</ConfigurationType> |
| 37 | <UseDebugLibraries>false</UseDebugLibraries> | 37 | <UseDebugLibraries>false</UseDebugLibraries> |
| 38 | <PlatformToolset>v143</PlatformToolset> | 38 | <PlatformToolset>v145</PlatformToolset> |
| 39 | <WholeProgramOptimization>true</WholeProgramOptimization> | 39 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 40 | <CharacterSet>Unicode</CharacterSet> | 40 | <CharacterSet>Unicode</CharacterSet> |
| 41 | </PropertyGroup> | 41 | </PropertyGroup> |
| 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
| 43 | <ConfigurationType>StaticLibrary</ConfigurationType> | 43 | <ConfigurationType>StaticLibrary</ConfigurationType> |
| 44 | <UseDebugLibraries>true</UseDebugLibraries> | 44 | <UseDebugLibraries>true</UseDebugLibraries> |
| 45 | <PlatformToolset>v143</PlatformToolset> | 45 | <PlatformToolset>v145</PlatformToolset> |
| 46 | <CharacterSet>Unicode</CharacterSet> | 46 | <CharacterSet>Unicode</CharacterSet> |
| 47 | </PropertyGroup> | 47 | </PropertyGroup> |
| 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
| 49 | <ConfigurationType>StaticLibrary</ConfigurationType> | 49 | <ConfigurationType>StaticLibrary</ConfigurationType> |
| 50 | <UseDebugLibraries>false</UseDebugLibraries> | 50 | <UseDebugLibraries>false</UseDebugLibraries> |
| 51 | <PlatformToolset>v143</PlatformToolset> | 51 | <PlatformToolset>v145</PlatformToolset> |
| 52 | <WholeProgramOptimization>true</WholeProgramOptimization> | 52 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 53 | <CharacterSet>Unicode</CharacterSet> | 53 | <CharacterSet>Unicode</CharacterSet> |
| 54 | </PropertyGroup> | 54 | </PropertyGroup> |
| @@ -166,4 +166,4 @@ | |||
| 166 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 166 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 167 | <ImportGroup Label="ExtensionTargets"> | 167 | <ImportGroup Label="ExtensionTargets"> |
| 168 | </ImportGroup> | 168 | </ImportGroup> |
| 169 | </Project> \ No newline at end of file | 169 | </Project> |
diff --git a/src/test/wix/TestData/VcxprojWindowsApp/VcxprojWindowsApp.vcxproj b/src/test/wix/TestData/VcxprojWindowsApp/VcxprojWindowsApp.vcxproj index 7c2ae016..41c9b153 100644 --- a/src/test/wix/TestData/VcxprojWindowsApp/VcxprojWindowsApp.vcxproj +++ b/src/test/wix/TestData/VcxprojWindowsApp/VcxprojWindowsApp.vcxproj | |||
| @@ -29,26 +29,26 @@ | |||
| 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | 29 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
| 30 | <ConfigurationType>Application</ConfigurationType> | 30 | <ConfigurationType>Application</ConfigurationType> |
| 31 | <UseDebugLibraries>true</UseDebugLibraries> | 31 | <UseDebugLibraries>true</UseDebugLibraries> |
| 32 | <PlatformToolset>v143</PlatformToolset> | 32 | <PlatformToolset>v145</PlatformToolset> |
| 33 | <CharacterSet>Unicode</CharacterSet> | 33 | <CharacterSet>Unicode</CharacterSet> |
| 34 | </PropertyGroup> | 34 | </PropertyGroup> |
| 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
| 36 | <ConfigurationType>Application</ConfigurationType> | 36 | <ConfigurationType>Application</ConfigurationType> |
| 37 | <UseDebugLibraries>false</UseDebugLibraries> | 37 | <UseDebugLibraries>false</UseDebugLibraries> |
| 38 | <PlatformToolset>v143</PlatformToolset> | 38 | <PlatformToolset>v145</PlatformToolset> |
| 39 | <WholeProgramOptimization>true</WholeProgramOptimization> | 39 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 40 | <CharacterSet>Unicode</CharacterSet> | 40 | <CharacterSet>Unicode</CharacterSet> |
| 41 | </PropertyGroup> | 41 | </PropertyGroup> |
| 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | 42 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
| 43 | <ConfigurationType>Application</ConfigurationType> | 43 | <ConfigurationType>Application</ConfigurationType> |
| 44 | <UseDebugLibraries>true</UseDebugLibraries> | 44 | <UseDebugLibraries>true</UseDebugLibraries> |
| 45 | <PlatformToolset>v143</PlatformToolset> | 45 | <PlatformToolset>v145</PlatformToolset> |
| 46 | <CharacterSet>Unicode</CharacterSet> | 46 | <CharacterSet>Unicode</CharacterSet> |
| 47 | </PropertyGroup> | 47 | </PropertyGroup> |
| 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
| 49 | <ConfigurationType>Application</ConfigurationType> | 49 | <ConfigurationType>Application</ConfigurationType> |
| 50 | <UseDebugLibraries>false</UseDebugLibraries> | 50 | <UseDebugLibraries>false</UseDebugLibraries> |
| 51 | <PlatformToolset>v143</PlatformToolset> | 51 | <PlatformToolset>v145</PlatformToolset> |
| 52 | <WholeProgramOptimization>true</WholeProgramOptimization> | 52 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 53 | <CharacterSet>Unicode</CharacterSet> | 53 | <CharacterSet>Unicode</CharacterSet> |
| 54 | </PropertyGroup> | 54 | </PropertyGroup> |
| @@ -157,4 +157,4 @@ | |||
| 157 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 157 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 158 | <ImportGroup Label="ExtensionTargets"> | 158 | <ImportGroup Label="ExtensionTargets"> |
| 159 | </ImportGroup> | 159 | </ImportGroup> |
| 160 | </Project> \ No newline at end of file | 160 | </Project> |
diff --git a/src/test/wix/TestData/WixprojLibraryMultiFramework/Library.wxs b/src/test/wix/TestData/WixprojLibraryMultiFramework/Library.wxs index 93049fd3..fe3e7f28 100644 --- a/src/test/wix/TestData/WixprojLibraryMultiFramework/Library.wxs +++ b/src/test/wix/TestData/WixprojLibraryMultiFramework/Library.wxs | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> | 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> |
| 2 | <Fragment> | 2 | <Fragment> |
| 3 | <ComponentGroup Id='CsprojClassLibraryMultiFrameworkNet80' Directory='ApplicationFolder' Subdirectory="net8.0"> | 3 | <ComponentGroup Id='CsprojClassLibraryMultiFrameworkNet80' Directory='ApplicationFolder' Subdirectory="net10.0"> |
| 4 | <Component> | 4 | <Component> |
| 5 | <File Id="Net80" Source='!(bindpath.CsprojConsoleMultiFramework.net8.0)CsprojConsoleMultiFramework.exe' /> | 5 | <File Id="Net80" Source='!(bindpath.CsprojConsoleMultiFramework.net10.0)CsprojConsoleMultiFramework.exe' /> |
| 6 | <File Source='!(bindpath.CsprojConsoleMultiFramework.net8.0)CsprojConsoleMultiFramework.deps.json' /> | 6 | <File Source='!(bindpath.CsprojConsoleMultiFramework.net10.0)CsprojConsoleMultiFramework.deps.json' /> |
| 7 | <File Source='!(bindpath.CsprojConsoleMultiFramework.net8.0)CsprojConsoleMultiFramework.runtimeconfig.json' /> | 7 | <File Source='!(bindpath.CsprojConsoleMultiFramework.net10.0)CsprojConsoleMultiFramework.runtimeconfig.json' /> |
| 8 | </Component> | 8 | </Component> |
| 9 | <Component> | 9 | <Component> |
| 10 | <File Source='!(bindpath.CsprojConsoleMultiFramework.net8.0)CsprojClassLibraryMultiFramework.dll' /> | 10 | <File Source='!(bindpath.CsprojConsoleMultiFramework.net10.0)CsprojClassLibraryMultiFramework.dll' /> |
| 11 | </Component> | 11 | </Component> |
| 12 | </ComponentGroup> | 12 | </ComponentGroup> |
| 13 | </Fragment> | 13 | </Fragment> |
diff --git a/src/test/wix/TestData/WixprojLibraryMultiFramework/WixprojLibraryMultiFramework.wixproj b/src/test/wix/TestData/WixprojLibraryMultiFramework/WixprojLibraryMultiFramework.wixproj index ec224510..64ddf82f 100644 --- a/src/test/wix/TestData/WixprojLibraryMultiFramework/WixprojLibraryMultiFramework.wixproj +++ b/src/test/wix/TestData/WixprojLibraryMultiFramework/WixprojLibraryMultiFramework.wixproj | |||
| @@ -7,6 +7,6 @@ | |||
| 7 | 7 | ||
| 8 | <ItemGroup> | 8 | <ItemGroup> |
| 9 | <ProjectReference Include="..\CsprojConsoleMultiFramework\CsprojConsoleMultiFramework.csproj" | 9 | <ProjectReference Include="..\CsprojConsoleMultiFramework\CsprojConsoleMultiFramework.csproj" |
| 10 | TargetFrameworks="net472;net8.0" Publish="true" /> | 10 | TargetFrameworks="net472;net10.0" Publish="true" /> |
| 11 | </ItemGroup> | 11 | </ItemGroup> |
| 12 | </Project> | 12 | </Project> |
diff --git a/src/test/wix/TestData/WixprojPackageCsprojWebApplicationNetCore/WixprojPackageCsprojWebApplicationNetCore.wixproj b/src/test/wix/TestData/WixprojPackageCsprojWebApplicationNetCore/WixprojPackageCsprojWebApplicationNetCore.wixproj index bbe0f49b..6c0585ef 100644 --- a/src/test/wix/TestData/WixprojPackageCsprojWebApplicationNetCore/WixprojPackageCsprojWebApplicationNetCore.wixproj +++ b/src/test/wix/TestData/WixprojPackageCsprojWebApplicationNetCore/WixprojPackageCsprojWebApplicationNetCore.wixproj | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | <!-- 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. --> | 1 | <!-- 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 | <Project Sdk='WixToolset.Sdk'> | 2 | <Project Sdk='WixToolset.Sdk'> |
| 3 | <!-- <Project> --> | 3 | <!-- <Project> --> |
| 4 | <!-- <Import Sdk="WixToolset.Sdk" Project='D:\src\wix4\build\wix\Debug\net8.0\Sdk\Sdk.props' /> --> | 4 | <!-- <Import Sdk="WixToolset.Sdk" Project='D:\src\wix4\build\wix\Debug\net10.0\Sdk\Sdk.props' /> --> |
| 5 | 5 | ||
| 6 | <PropertyGroup> | 6 | <PropertyGroup> |
| 7 | <!-- <WixBinDir>D:\src\wix4\build\wix\Debug\net472\</WixBinDir> --> | 7 | <!-- <WixBinDir>D:\src\wix4\build\wix\Debug\net472\</WixBinDir> --> |
| @@ -13,5 +13,5 @@ | |||
| 13 | <ProjectReference Include="..\CsprojWebApplicationNetCore\CsprojWebApplicationNetCore.csproj" Publish="true" /> | 13 | <ProjectReference Include="..\CsprojWebApplicationNetCore\CsprojWebApplicationNetCore.csproj" Publish="true" /> |
| 14 | </ItemGroup> | 14 | </ItemGroup> |
| 15 | 15 | ||
| 16 | <!-- <Import Sdk="WixToolset.Sdk" Project='D:\src\wix4\build\wix\Debug\net8.0\Sdk\Sdk.targets' /> --> | 16 | <!-- <Import Sdk="WixToolset.Sdk" Project='D:\src\wix4\build\wix\Debug\net10.0\Sdk\Sdk.targets' /> --> |
| 17 | </Project> | 17 | </Project> |
diff --git a/src/test/wix/WixE2E/WixE2E.csproj b/src/test/wix/WixE2E/WixE2E.csproj index 055df524..934b7162 100644 --- a/src/test/wix/WixE2E/WixE2E.csproj +++ b/src/test/wix/WixE2E/WixE2E.csproj | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | 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. --> | 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 | 3 | ||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="MSTest.Sdk"> |
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <TargetFramework>net472</TargetFramework> | 6 | <TargetFramework>net10.0</TargetFramework> |
| 7 | <IsWixTestProject>true</IsWixTestProject> | 7 | <IsWixMSTestProject>true</IsWixMSTestProject> |
| 8 | </PropertyGroup> | 8 | </PropertyGroup> |
| 9 | 9 | ||
| 10 | <ItemGroup> | 10 | <ItemGroup> |
| @@ -12,6 +12,7 @@ | |||
| 12 | </ItemGroup> | 12 | </ItemGroup> |
| 13 | 13 | ||
| 14 | <ItemGroup> | 14 | <ItemGroup> |
| 15 | <PackageReference Include="WixInternal.TestSupport" /> | 15 | <PackageReference Include="WixInternal.MSTestSupport" /> |
| 16 | <PackageReference Include="WixInternal.Core.MSTestPackage" /> | ||
| 16 | </ItemGroup> | 17 | </ItemGroup> |
| 17 | </Project> | 18 | </Project> |
diff --git a/src/test/wix/WixE2E/WixE2EFixture.cs b/src/test/wix/WixE2E/WixE2EFixture.cs index 512e80f5..abea0ec7 100644 --- a/src/test/wix/WixE2E/WixE2EFixture.cs +++ b/src/test/wix/WixE2E/WixE2EFixture.cs | |||
| @@ -1,18 +1,21 @@ | |||
| 1 | // 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. | 1 | // 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 | 2 | ||
| 3 | namespace WixE2E | 3 | using System; |
| 4 | { | 4 | using System.IO; |
| 5 | using System; | 5 | using System.Linq; |
| 6 | using System.IO; | 6 | using System.Security.Cryptography; |
| 7 | using System.Linq; | 7 | using System.Text; |
| 8 | using System.Security.Cryptography; | 8 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
| 9 | using System.Text; | 9 | using WixInternal.MSTestSupport; |
| 10 | using WixInternal.TestSupport; | 10 | |
| 11 | using Xunit; | 11 | [assembly: DoNotParallelize] |
| 12 | 12 | ||
| 13 | namespace WixToolsetTest.WixE2E | ||
| 14 | { | ||
| 15 | [TestClass] | ||
| 13 | public class WixE2EFixture | 16 | public class WixE2EFixture |
| 14 | { | 17 | { |
| 15 | [Fact] | 18 | [TestMethod] |
| 16 | public void CanBuildWixlibMultiFramework() | 19 | public void CanBuildWixlibMultiFramework() |
| 17 | { | 20 | { |
| 18 | var projectPath = TestData.Get("TestData", "WixprojLibraryMultiFramework", "WixprojLibraryMultiFramework.wixproj"); | 21 | var projectPath = TestData.Get("TestData", "WixprojLibraryMultiFramework", "WixprojLibraryMultiFramework.wixproj"); |
| @@ -23,7 +26,7 @@ namespace WixE2E | |||
| 23 | result.AssertSuccess(); | 26 | result.AssertSuccess(); |
| 24 | } | 27 | } |
| 25 | 28 | ||
| 26 | [Fact] | 29 | [TestMethod] |
| 27 | public void CanBuildWixlibWithNativeDll() | 30 | public void CanBuildWixlibWithNativeDll() |
| 28 | { | 31 | { |
| 29 | var projectPath = TestData.Get("TestData", "WixprojLibraryVcxprojDll", "WixprojLibraryVcxprojDll.wixproj"); | 32 | var projectPath = TestData.Get("TestData", "WixprojLibraryVcxprojDll", "WixprojLibraryVcxprojDll.wixproj"); |
| @@ -34,7 +37,7 @@ namespace WixE2E | |||
| 34 | result.AssertSuccess(); | 37 | result.AssertSuccess(); |
| 35 | } | 38 | } |
| 36 | 39 | ||
| 37 | [Fact] | 40 | [TestMethod] |
| 38 | public void CanBuildModuleWithWinFormsApp() | 41 | public void CanBuildModuleWithWinFormsApp() |
| 39 | { | 42 | { |
| 40 | var projectPath = TestData.Get("TestData", "WixprojModuleCsprojWinFormsNetFx", "WixprojModuleCsprojWinFormsNetFx.wixproj"); | 43 | var projectPath = TestData.Get("TestData", "WixprojModuleCsprojWinFormsNetFx", "WixprojModuleCsprojWinFormsNetFx.wixproj"); |
| @@ -45,7 +48,7 @@ namespace WixE2E | |||
| 45 | result.AssertSuccess(); | 48 | result.AssertSuccess(); |
| 46 | } | 49 | } |
| 47 | 50 | ||
| 48 | [Fact] | 51 | [TestMethod] |
| 49 | public void CanBuildPackageWithWebApp() | 52 | public void CanBuildPackageWithWebApp() |
| 50 | { | 53 | { |
| 51 | var projectPath = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore", "WixprojPackageCsprojWebApplicationNetCore.wixproj"); | 54 | var projectPath = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore", "WixprojPackageCsprojWebApplicationNetCore.wixproj"); |
| @@ -56,7 +59,7 @@ namespace WixE2E | |||
| 56 | result.AssertSuccess(); | 59 | result.AssertSuccess(); |
| 57 | } | 60 | } |
| 58 | 61 | ||
| 59 | [Fact] | 62 | [TestMethod] |
| 60 | public void CanBuildPackageWithNativeWindowsApp() | 63 | public void CanBuildPackageWithNativeWindowsApp() |
| 61 | { | 64 | { |
| 62 | var projectPath = TestData.Get("TestData", "WixprojPackageVcxprojWindowsApp", "WixprojPackageVcxprojWindowsApp.wixproj"); | 65 | var projectPath = TestData.Get("TestData", "WixprojPackageVcxprojWindowsApp", "WixprojPackageVcxprojWindowsApp.wixproj"); |
| @@ -75,7 +78,7 @@ namespace WixE2E | |||
| 75 | }, signingStatement); | 78 | }, signingStatement); |
| 76 | } | 79 | } |
| 77 | 80 | ||
| 78 | [Fact] | 81 | [TestMethod] |
| 79 | public void CanIncrementalBuildPackageWithNativeWindowsAppWithNoEdits() | 82 | public void CanIncrementalBuildPackageWithNativeWindowsAppWithNoEdits() |
| 80 | { | 83 | { |
| 81 | var projectDirectory = TestData.Get("TestData", "WixprojPackageVcxprojWindowsApp"); | 84 | var projectDirectory = TestData.Get("TestData", "WixprojPackageVcxprojWindowsApp"); |
| @@ -101,7 +104,7 @@ namespace WixE2E | |||
| 101 | WixAssert.CompareLineByLine(firstHashes, secondHashes); | 104 | WixAssert.CompareLineByLine(firstHashes, secondHashes); |
| 102 | } | 105 | } |
| 103 | 106 | ||
| 104 | [Fact] | 107 | [TestMethod] |
| 105 | public void CanIncrementalBuildPackageWithNativeWindowsAppWithEdits() | 108 | public void CanIncrementalBuildPackageWithNativeWindowsAppWithEdits() |
| 106 | { | 109 | { |
| 107 | var projectDirectory = TestData.Get("TestData", "WixprojPackageVcxprojWindowsApp"); | 110 | var projectDirectory = TestData.Get("TestData", "WixprojPackageVcxprojWindowsApp"); |
| @@ -130,37 +133,38 @@ namespace WixE2E | |||
| 130 | var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); | 133 | var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); |
| 131 | 134 | ||
| 132 | WixAssert.CompareLineByLine(firstRelativePaths, secondRelativePaths); | 135 | WixAssert.CompareLineByLine(firstRelativePaths, secondRelativePaths); |
| 133 | Assert.NotEqual(firstHashes, secondHashes); | 136 | Assert.AreNotEqual(firstHashes, secondHashes); |
| 134 | } | 137 | } |
| 135 | 138 | ||
| 136 | [Fact(Skip = "Investigate if .NET Core WebApplications can be incrementally built")] | 139 | //[TestMethod] |
| 137 | public void CanIncrementalBuildPackageWithNetCoreWebAppWithoutEdits() | 140 | //[Fact(Skip = "Investigate if .NET Core WebApplications can be incrementally built")] |
| 138 | { | 141 | //public void CanIncrementalBuildPackageWithNetCoreWebAppWithoutEdits() |
| 139 | var projectDirectory = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore"); | 142 | //{ |
| 140 | var projectPath = Path.Combine(projectDirectory, "WixprojPackageCsprojWebApplicationNetCore.wixproj"); | 143 | // var projectDirectory = TestData.Get("TestData", "WixprojPackageCsprojWebApplicationNetCore"); |
| 141 | var projectBinPath = Path.Combine(projectDirectory, "bin"); | 144 | // var projectPath = Path.Combine(projectDirectory, "WixprojPackageCsprojWebApplicationNetCore.wixproj"); |
| 145 | // var projectBinPath = Path.Combine(projectDirectory, "bin"); | ||
| 142 | 146 | ||
| 143 | CleanEverything(); | 147 | // CleanEverything(); |
| 144 | 148 | ||
| 145 | var result = RestoreAndBuild(projectPath); | 149 | // var result = RestoreAndBuild(projectPath); |
| 146 | result.AssertSuccess(); | 150 | // result.AssertSuccess(); |
| 147 | 151 | ||
| 148 | var firstBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); | 152 | // var firstBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); |
| 149 | var firstHashes = firstBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); | 153 | // var firstHashes = firstBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); |
| 150 | 154 | ||
| 151 | //var packageWxsPath = Path.Combine(projectDirectory, "Package.wxs"); | 155 | // //var packageWxsPath = Path.Combine(projectDirectory, "Package.wxs"); |
| 152 | //File.SetLastWriteTime(packageWxsPath, DateTime.Now); | 156 | // //File.SetLastWriteTime(packageWxsPath, DateTime.Now); |
| 153 | 157 | ||
| 154 | // This should be an incremental build that does work because a file was updated. | 158 | // // This should be an incremental build that does work because a file was updated. |
| 155 | // | 159 | // // |
| 156 | result = RestoreAndBuild(projectPath); | 160 | // result = RestoreAndBuild(projectPath); |
| 157 | result.AssertSuccess(); | 161 | // result.AssertSuccess(); |
| 158 | 162 | ||
| 159 | var secondBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); | 163 | // var secondBuiltFiles = Directory.GetFiles(projectBinPath, "*.*", SearchOption.AllDirectories).ToArray(); |
| 160 | var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); | 164 | // var secondHashes = secondBuiltFiles.Select(s => $"{s.Substring(projectBinPath.Length).TrimStart('\\')} with hash: {GetFileHash(s)}").ToArray(); |
| 161 | 165 | ||
| 162 | WixAssert.CompareLineByLine(firstHashes, secondHashes); | 166 | // WixAssert.CompareLineByLine(firstHashes, secondHashes); |
| 163 | } | 167 | //} |
| 164 | 168 | ||
| 165 | private static void CleanEverything() | 169 | private static void CleanEverything() |
| 166 | { | 170 | { |
| @@ -179,11 +183,6 @@ namespace WixE2E | |||
| 179 | } | 183 | } |
| 180 | } | 184 | } |
| 181 | } | 185 | } |
| 182 | |||
| 183 | foreach (var logFile in Directory.GetFiles(rootFolder, "*.binlog", SearchOption.AllDirectories)) | ||
| 184 | { | ||
| 185 | File.Delete(logFile); | ||
| 186 | } | ||
| 187 | } | 186 | } |
| 188 | 187 | ||
| 189 | private static string GetFileHash(string path) | 188 | private static string GetFileHash(string path) |
| @@ -205,7 +204,23 @@ namespace WixE2E | |||
| 205 | 204 | ||
| 206 | private static MsbuildRunnerResult RestoreAndBuild(string projectPath, bool x64 = true, bool suppressValidation = true) | 205 | private static MsbuildRunnerResult RestoreAndBuild(string projectPath, bool x64 = true, bool suppressValidation = true) |
| 207 | { | 206 | { |
| 208 | return MsbuildRunner.Execute(projectPath, new[] { "-Restore", "-v:m", "-bl", $"-p:SuppressValidation={suppressValidation}" }, x64); | 207 | var logPath = BinlogPath(projectPath); |
| 208 | |||
| 209 | var result = MsbuildRunner.Execute(projectPath, new[] { "-Restore", "-v:m", $"-bl:{logPath}", $"-p:SuppressValidation={suppressValidation}" }, x64); | ||
| 210 | |||
| 211 | return result; | ||
| 212 | } | ||
| 213 | |||
| 214 | private static string BinlogPath(string basePath) | ||
| 215 | { | ||
| 216 | var logPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(basePath), "..", "..", "..", "..", "..", "logs", "tests", "WixE2E", Path.ChangeExtension(Path.GetFileName(basePath), ".binlog"))); | ||
| 217 | |||
| 218 | while (File.Exists(logPath)) | ||
| 219 | { | ||
| 220 | logPath = Path.ChangeExtension(logPath, ".X.binlog"); | ||
| 221 | } | ||
| 222 | |||
| 223 | return logPath; | ||
| 209 | } | 224 | } |
| 210 | } | 225 | } |
| 211 | } | 226 | } |
diff --git a/src/test/wix/test_wix.cmd b/src/test/wix/test_wix.cmd new file mode 100644 index 00000000..50f92c94 --- /dev/null +++ b/src/test/wix/test_wix.cmd | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | @setlocal | ||
| 2 | @pushd %~dp0 | ||
| 3 | |||
| 4 | @set _RESULT=0 | ||
| 5 | @set _C=Debug | ||
| 6 | @set _L=%~dp0..\..\..\build\logs | ||
| 7 | :parse_args | ||
| 8 | @if /i "%1"=="release" set _C=Release | ||
| 9 | @if not "%1"=="" shift & goto parse_args | ||
| 10 | |||
| 11 | @echo WiX integration tests %_C% | ||
| 12 | |||
| 13 | msbuild -Restore WixE2E\WixE2E.csproj -t:Test -p:Configuration=%_C% -tl -nologo -warnaserror -bl:%_L%\test_wix.binlog || exit /b | ||
| 14 | |||
| 15 | @popd | ||
| 16 | @endlocal | ||
