diff options
Diffstat (limited to 'src/internal')
8 files changed, 46 insertions, 52 deletions
diff --git a/src/internal/SetBuildNumber/Directory.Packages.props.pp b/src/internal/SetBuildNumber/Directory.Packages.props.pp index 4632272f..6c01a4da 100644 --- a/src/internal/SetBuildNumber/Directory.Packages.props.pp +++ b/src/internal/SetBuildNumber/Directory.Packages.props.pp | |||
| @@ -52,58 +52,52 @@ | |||
| 52 | </ItemGroup> | 52 | </ItemGroup> |
| 53 | 53 | ||
| 54 | <ItemGroup> | 54 | <ItemGroup> |
| 55 | <PackageVersion Include="System.Configuration.ConfigurationManager" Version="6.0.2" /> | 55 | <PackageVersion Include="System.Configuration.ConfigurationManager" Version="8.0.1" /> |
| 56 | <PackageVersion Include="System.Diagnostics.PerformanceCounter" Version="6.0.2" /> | 56 | <PackageVersion Include="System.Diagnostics.PerformanceCounter" Version="8.0.1" /> |
| 57 | <PackageVersion Include="System.DirectoryServices" Version="6.0.2" /> | 57 | <PackageVersion Include="System.DirectoryServices" Version="8.0.0" /> |
| 58 | <PackageVersion Include="System.DirectoryServices.AccountManagement" Version="6.0.1" /> | 58 | <PackageVersion Include="System.DirectoryServices.AccountManagement" Version="8.0.1" /> |
| 59 | <PackageVersion Include="System.Management" Version="6.0.2" /> | 59 | <PackageVersion Include="System.Management" Version="8.0.0" /> |
| 60 | <PackageVersion Include="System.IO.Compression" Version="4.3.0" /> | 60 | <PackageVersion Include="System.IO.Compression" Version="4.3.0" /> |
| 61 | <PackageVersion Include="System.IO.FileSystem.AccessControl" Version="5.0.0" /> | 61 | <PackageVersion Include="System.IO.FileSystem.AccessControl" Version="5.0.0" /> |
| 62 | <PackageVersion Include="System.Net.NetworkInformation" Version="4.3.0" /> | 62 | <PackageVersion Include="System.Net.NetworkInformation" Version="4.3.0" /> |
| 63 | <PackageVersion Include="System.Reflection.Metadata" Version="6.0.2" /> | 63 | <PackageVersion Include="System.Reflection.Metadata" Version="8.0.1" /> |
| 64 | <PackageVersion Include="System.Security.Principal.Windows" Version="5.0.0" /> | 64 | <PackageVersion Include="System.Security.Principal.Windows" Version="5.0.0" /> |
| 65 | <PackageVersion Include="System.Text.Encoding.CodePages" Version="6.0.1" /> | 65 | <PackageVersion Include="System.Text.Encoding.CodePages" Version="8.0.0" /> |
| 66 | <PackageVersion Include="System.Text.Json" Version="8.0.5" /> | 66 | <PackageVersion Include="System.Text.Json" Version="8.0.6" /> |
| 67 | <PackageVersion Include="System.Memory" Version="4.5.5" /> | 67 | <PackageVersion Include="System.Memory" Version="4.6.3" /> |
| 68 | 68 | ||
| 69 | <PackageVersion Include="Microsoft.AspNetCore.Owin" Version="3.1.13" /> | 69 | <PackageVersion Include="Microsoft.AspNetCore.Owin" Version="8.0.21" /> |
| 70 | <PackageVersion Include="Microsoft.VisualStudio.Setup.Configuration.Native" Version="3.10.2154" /> | 70 | <PackageVersion Include="Microsoft.VisualStudio.Setup.Configuration.Native" Version="3.14.2075" /> |
| 71 | <PackageVersion Include="Microsoft.Win32.Registry" Version="5.0.0" /> | 71 | <PackageVersion Include="Microsoft.Win32.Registry" Version="5.0.0" /> |
| 72 | </ItemGroup> | 72 | </ItemGroup> |
| 73 | 73 | ||
| 74 | <ItemGroup> | 74 | <ItemGroup> |
| 75 | <PackageVersion Include="NuGet.Credentials" Version="6.12.1" /> | 75 | <PackageVersion Include="NuGet.Credentials" Version="6.13.2" /> |
| 76 | <PackageVersion Include="NuGet.Protocol" Version="6.12.1" /> | 76 | <PackageVersion Include="NuGet.Protocol" Version="6.13.2" /> |
| 77 | <PackageVersion Include="NuGet.Versioning" Version="6.12.1" /> | 77 | <PackageVersion Include="NuGet.Versioning" Version="6.13.2" /> |
| 78 | </ItemGroup> | 78 | </ItemGroup> |
| 79 | 79 | ||
| 80 | <!-- | 80 | <ItemGroup> |
| 81 | These MSBuild versions are trapped in antiquity for heat.exe. | 81 | <PackageVersion Include="Microsoft.Build.Tasks.Core" Version="17.13.26" /> |
| 82 | --> | ||
| 83 | <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'"> | ||
| 84 | <PackageVersion Include="Microsoft.Build.Tasks.Core" Version="14.3.0" /> | ||
| 85 | </ItemGroup> | ||
| 86 | <ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'"> | ||
| 87 | <PackageVersion Include="Microsoft.Build.Tasks.Core" Version="15.7.179" /> | ||
| 88 | </ItemGroup> | 82 | </ItemGroup> |
| 89 | 83 | ||
| 90 | <!-- Keep the following versions in sync with internal\WixInternal.TestSupport.Native\packages.config --> | 84 | <!-- Keep the following versions in sync with internal\WixInternal.TestSupport.Native\packages.config --> |
| 91 | <ItemGroup> | 85 | <ItemGroup> |
| 92 | <PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" /> | 86 | <PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" /> |
| 93 | 87 | ||
| 94 | <PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" /> | 88 | <PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" /> |
| 95 | <PackageVersion Include="xunit" Version="2.8.1" /> | 89 | <PackageVersion Include="xunit" Version="2.9.3" /> |
| 96 | <PackageVersion Include="xunit.runner.visualstudio" Version="2.8.1" /> | 90 | <PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" /> |
| 97 | <PackageVersion Include="xunit.assert" Version="2.8.1" /> | 91 | <PackageVersion Include="xunit.assert" Version="2.9.3" /> |
| 98 | </ItemGroup> | 92 | </ItemGroup> |
| 99 | 93 | ||
| 100 | <ItemGroup> | 94 | <ItemGroup> |
| 101 | <PackageVersion Include="MSTest.TestFramework" Version="3.8.3" /> | 95 | <PackageVersion Include="MSTest.TestFramework" Version="4.0.1" /> |
| 102 | </ItemGroup> | 96 | </ItemGroup> |
| 103 | 97 | ||
| 104 | <ItemGroup> | 98 | <ItemGroup> |
| 105 | <PackageVersion Include="Microsoft.NET.Tools.NETCoreCheck.x86" Version="6.0.0" /> | 99 | <PackageVersion Include="Microsoft.NET.Tools.NETCoreCheck.x86" Version="7.0.0" /> |
| 106 | <PackageVersion Include="Microsoft.NET.Tools.NETCoreCheck.x64" Version="6.0.0" /> | 100 | <PackageVersion Include="Microsoft.NET.Tools.NETCoreCheck.x64" Version="7.0.0" /> |
| 107 | <PackageVersion Include="Microsoft.NET.Tools.NETCoreCheck.arm64" Version="6.0.0" /> | 101 | <PackageVersion Include="Microsoft.NET.Tools.NETCoreCheck.arm64" Version="7.0.0" /> |
| 108 | </ItemGroup> | 102 | </ItemGroup> |
| 109 | </Project> | 103 | </Project> |
diff --git a/src/internal/SetBuildNumber/global.json.pp b/src/internal/SetBuildNumber/global.json.pp index 48f4ecb3..97f7e471 100644 --- a/src/internal/SetBuildNumber/global.json.pp +++ b/src/internal/SetBuildNumber/global.json.pp | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | { | 1 | { |
| 2 | "msbuild-sdks": { | 2 | "msbuild-sdks": { |
| 3 | "MSTest.Sdk": "3.8.3", | 3 | "MSTest.Sdk": "4.0.1", |
| 4 | "Microsoft.Build.Traversal": "4.1.82", | 4 | "Microsoft.Build.Traversal": "4.1.82", |
| 5 | "Microsoft.Build.NoTargets": "3.5.6", | 5 | "Microsoft.Build.NoTargets": "3.7.134", |
| 6 | "WixToolset.Sdk": "{packageversion}" | 6 | "WixToolset.Sdk": "{packageversion}" |
| 7 | }, | 7 | }, |
| 8 | "sdk": { | 8 | "sdk": { |
diff --git a/src/internal/WixInternal.MSTestSupport/MsbuildRunnerResult.cs b/src/internal/WixInternal.MSTestSupport/MsbuildRunnerResult.cs index 02e25ebb..4dda6b23 100644 --- a/src/internal/WixInternal.MSTestSupport/MsbuildRunnerResult.cs +++ b/src/internal/WixInternal.MSTestSupport/MsbuildRunnerResult.cs | |||
| @@ -13,7 +13,7 @@ namespace WixInternal.MSTestSupport | |||
| 13 | 13 | ||
| 14 | public void AssertSuccess() | 14 | public void AssertSuccess() |
| 15 | { | 15 | { |
| 16 | Assert.IsTrue(0 == this.ExitCode, $"MSBuild failed unexpectedly. Output:{Environment.NewLine}{String.Join(Environment.NewLine, this.Output)}"); | 16 | Assert.AreEqual(0, this.ExitCode, $"MSBuild failed unexpectedly. Output:{Environment.NewLine}{String.Join(Environment.NewLine, this.Output)}"); |
| 17 | } | 17 | } |
| 18 | } | 18 | } |
| 19 | } | 19 | } |
diff --git a/src/internal/WixInternal.MSTestSupport/WixAssert.cs b/src/internal/WixInternal.MSTestSupport/WixAssert.cs index 9110309d..3da4f9e6 100644 --- a/src/internal/WixInternal.MSTestSupport/WixAssert.cs +++ b/src/internal/WixInternal.MSTestSupport/WixAssert.cs | |||
| @@ -99,7 +99,7 @@ namespace WixInternal.MSTestSupport | |||
| 99 | 99 | ||
| 100 | public static void NotEmpty<T>(IEnumerable<T> collection) | 100 | public static void NotEmpty<T>(IEnumerable<T> collection) |
| 101 | { | 101 | { |
| 102 | Assert.IsTrue(collection.Count() > 0); | 102 | Assert.IsGreaterThan(0, collection.Count()); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | public static void Empty<T>(IEnumerable<T> collection) | 105 | public static void Empty<T>(IEnumerable<T> collection) |
diff --git a/src/internal/WixInternal.MSTestSupport/WixInternal.MSTestSupport.csproj b/src/internal/WixInternal.MSTestSupport/WixInternal.MSTestSupport.csproj index b48aacd4..6edc92c3 100644 --- a/src/internal/WixInternal.MSTestSupport/WixInternal.MSTestSupport.csproj +++ b/src/internal/WixInternal.MSTestSupport/WixInternal.MSTestSupport.csproj | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
| 5 | 5 | ||
| 6 | <PropertyGroup> | 6 | <PropertyGroup> |
| 7 | <TargetFrameworks>net6.0;net472</TargetFrameworks> | 7 | <TargetFramework>net8.0</TargetFramework> |
| 8 | <IsPackable>true</IsPackable> | 8 | <IsPackable>true</IsPackable> |
| 9 | <DebugType>embedded</DebugType> | 9 | <DebugType>embedded</DebugType> |
| 10 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | 10 | <PublishRepositoryUrl>true</PublishRepositoryUrl> |
diff --git a/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.props b/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.props index 2362a8de..f0d37a71 100644 --- a/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.props +++ b/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.props | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <RepoRootDir Condition=" '$(RepoRootDir)' == '' ">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), .gitignore))</RepoRootDir> | 6 | <RepoRootDir Condition=" '$(RepoRootDir)' == '' ">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), .gitignore))</RepoRootDir> |
| 7 | </PropertyGroup> | 7 | </PropertyGroup> |
| 8 | <Import Project="$(RepoRootDir)\packages\xunit.core.2.8.1\build\xunit.core.props" Condition="Exists('$(RepoRootDir)\packages\xunit.core.2.8.1\build\xunit.core.props')" /> | 8 | <Import Project="$(RepoRootDir)\packages\xunit.core.2.9.3\build\xunit.core.props" Condition="Exists('$(RepoRootDir)\packages\xunit.core.2.9.3\build\xunit.core.props')" /> |
| 9 | <Import Project="$(RepoRootDir)\packages\xunit.runner.visualstudio.2.8.1\build\net462\xunit.runner.visualstudio.props" Condition="Exists('$(RepoRootDir)\packages\xunit.runner.visualstudio.2.8.1\build\net462\xunit.runner.visualstudio.props')" /> | 9 | <Import Project="$(RepoRootDir)\packages\xunit.runner.visualstudio.2.8.2\build\net462\xunit.runner.visualstudio.props" Condition="Exists('$(RepoRootDir)\packages\xunit.runner.visualstudio.2.8.2\build\net462\xunit.runner.visualstudio.props')" /> |
| 10 | <PropertyGroup> | 10 | <PropertyGroup> |
| 11 | <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | 11 | <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
| 12 | </PropertyGroup> | 12 | </PropertyGroup> |
diff --git a/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets b/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets index a882ad8d..36875a6e 100644 --- a/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets +++ b/src/internal/WixInternal.TestSupport.Native/build/WixInternal.TestSupport.Native.targets | |||
| @@ -22,28 +22,28 @@ | |||
| 22 | <HintPath>$(RootPackagesFolder)xunit.abstractions.2.0.3\lib\netstandard2.0\xunit.abstractions.dll</HintPath> | 22 | <HintPath>$(RootPackagesFolder)xunit.abstractions.2.0.3\lib\netstandard2.0\xunit.abstractions.dll</HintPath> |
| 23 | </Reference> | 23 | </Reference> |
| 24 | <Reference Include="xunit.assert"> | 24 | <Reference Include="xunit.assert"> |
| 25 | <HintPath>$(RootPackagesFolder)xunit.assert.2.8.1\lib\netstandard1.1\xunit.assert.dll</HintPath> | 25 | <HintPath>$(RootPackagesFolder)xunit.assert.2.9.3\lib\netstandard1.1\xunit.assert.dll</HintPath> |
| 26 | </Reference> | 26 | </Reference> |
| 27 | <Reference Include="xunit.core"> | 27 | <Reference Include="xunit.core"> |
| 28 | <HintPath>$(RootPackagesFolder)xunit.extensibility.core.2.8.1\lib\netstandard1.1\xunit.core.dll</HintPath> | 28 | <HintPath>$(RootPackagesFolder)xunit.extensibility.core.2.9.3\lib\netstandard1.1\xunit.core.dll</HintPath> |
| 29 | </Reference> | 29 | </Reference> |
| 30 | <Reference Include="xunit.execution.desktop"> | 30 | <Reference Include="xunit.execution.desktop"> |
| 31 | <HintPath>$(RootPackagesFolder)xunit.extensibility.execution.2.8.1\lib\net452\xunit.execution.desktop.dll</HintPath> | 31 | <HintPath>$(RootPackagesFolder)xunit.extensibility.execution.2.9.3\lib\net452\xunit.execution.desktop.dll</HintPath> |
| 32 | </Reference> | 32 | </Reference> |
| 33 | </ItemGroup> | 33 | </ItemGroup> |
| 34 | 34 | ||
| 35 | <Import Project="$(RootPackagesFolder)xunit.core.2.8.1\build\xunit.core.targets" Condition="Exists('$(RootPackagesFolder)xunit.core.2.8.1\build\xunit.core.targets')" /> | 35 | <Import Project="$(RootPackagesFolder)xunit.core.2.9.3\build\xunit.core.targets" Condition="Exists('$(RootPackagesFolder)xunit.core.2.9.3\build\xunit.core.targets')" /> |
| 36 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 36 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 37 | <PropertyGroup> | 37 | <PropertyGroup> |
| 38 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | 38 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
| 39 | </PropertyGroup> | 39 | </PropertyGroup> |
| 40 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.8.1\build\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.8.1\build\xunit.core.props'))" /> | 40 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.9.3\build\xunit.core.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.9.3\build\xunit.core.props'))" /> |
| 41 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.8.1\build\xunit.core.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.8.1\build\xunit.core.targets'))" /> | 41 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.core.2.9.3\build\xunit.core.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.core.2.9.3\build\xunit.core.targets'))" /> |
| 42 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.runner.visualstudio.2.8.1\build\net462\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.runner.visualstudio.2.8.1\build\net462\xunit.runner.visualstudio.props'))" /> | 42 | <Error Condition="!Exists('$(RootPackagesFolder)xunit.runner.visualstudio.2.8.2\build\net462\xunit.runner.visualstudio.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RootPackagesFolder)xunit.runner.visualstudio.2.8.2\build\net462\xunit.runner.visualstudio.props'))" /> |
| 43 | </Target> | 43 | </Target> |
| 44 | 44 | ||
| 45 | <UsingTask AssemblyFile="$(RootPackagesFolder)xunit.runner.msbuild.2.8.1\build\net452\xunit.runner.msbuild.net452.dll" TaskName="Xunit.Runner.MSBuild.xunit" Architecture="x86" Condition=" '$(Platform)'!='x64' " /> | 45 | <UsingTask AssemblyFile="$(RootPackagesFolder)xunit.runner.msbuild.2.9.3\build\net452\xunit.runner.msbuild.net452.dll" TaskName="Xunit.Runner.MSBuild.xunit" Architecture="x86" Condition=" '$(Platform)'!='x64' " /> |
| 46 | <UsingTask AssemblyFile="$(RootPackagesFolder)xunit.runner.msbuild.2.8.1\build\net452\xunit.runner.msbuild.net452.dll" TaskName="Xunit.Runner.MSBuild.xunit" Architecture="x64" Condition=" '$(Platform)'=='x64' " /> | 46 | <UsingTask AssemblyFile="$(RootPackagesFolder)xunit.runner.msbuild.2.9.3\build\net452\xunit.runner.msbuild.net452.dll" TaskName="Xunit.Runner.MSBuild.xunit" Architecture="x64" Condition=" '$(Platform)'=='x64' " /> |
| 47 | <Target Name="Test"> | 47 | <Target Name="Test"> |
| 48 | <!-- https://xunit.net/docs/running-tests-in-msbuild --> | 48 | <!-- https://xunit.net/docs/running-tests-in-msbuild --> |
| 49 | <!-- https://github.com/xunit/xunit/issues/2188 --> | 49 | <!-- https://github.com/xunit/xunit/issues/2188 --> |
diff --git a/src/internal/WixInternal.TestSupport.Native/packages.config b/src/internal/WixInternal.TestSupport.Native/packages.config index 21567bf3..ea16d09d 100644 --- a/src/internal/WixInternal.TestSupport.Native/packages.config +++ b/src/internal/WixInternal.TestSupport.Native/packages.config | |||
| @@ -7,10 +7,10 @@ | |||
| 7 | when any of these versions are updated. | 7 | when any of these versions are updated. |
| 8 | --> | 8 | --> |
| 9 | <package id="xunit.abstractions" version="2.0.3" /> | 9 | <package id="xunit.abstractions" version="2.0.3" /> |
| 10 | <package id="xunit.assert" version="2.8.1" /> | 10 | <package id="xunit.assert" version="2.9.3" /> |
| 11 | <package id="xunit.core" version="2.8.1" /> | 11 | <package id="xunit.core" version="2.9.3" /> |
| 12 | <package id="xunit.extensibility.core" version="2.8.1" /> | 12 | <package id="xunit.extensibility.core" version="2.9.3" /> |
| 13 | <package id="xunit.extensibility.execution" version="2.8.1" /> | 13 | <package id="xunit.extensibility.execution" version="2.9.3" /> |
| 14 | <package id="xunit.runner.msbuild" version="2.8.1" /> | 14 | <package id="xunit.runner.msbuild" version="2.9.3" /> |
| 15 | <package id="xunit.runner.visualstudio" version="2.8.1" /> | 15 | <package id="xunit.runner.visualstudio" version="2.8.2" /> |
| 16 | </packages> | 16 | </packages> |
