Updated to use IntelliTect.Multitool to find location
MODIFY
src/Chapter10.Tests/Chapter10.Tests.csproj
src/Chapter10.Tests/Chapter10.Tests.csproj
<ItemGroup>
<Compile Include="..\Shared\Tests\PowerShellTestUtilities.cs" Link="PowerShellTestUtilities.cs" />
</ItemGroup>
+ <ItemGroup>
+ <PackageReference Include="IntelliTect.Multitool" Version="1.2.0" />
+ </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Chapter10\Chapter10.csproj" />
</ItemGroup>

MODIFY
src/Chapter10.Tests/Listing10.23.RegisteringAFinalizerWithProcessExit.Tests.cs
src/Chapter10.Tests/Listing10.23.RegisteringAFinalizerWithProcessExit.Tests.cs
@@ -13,7 +13,9 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter10.Listing10_23.Tests
public TestContext TestContext { get; set; } = null!; // Auto-initialized by MSTest.
static string Ps1DirectoryPath { get; } =
- Path.GetFullPath(Path.Join("..", "..", "..", "..", "Chapter10"), Environment.CurrentDirectory);
+ Path.GetFullPath(
+ Path.Join(IntelliTect.Multitool.RepositoryPaths.GetDefaultRepoRoot(),"src", "Chapter10"));
+
static string Ps1Path { get; } =
Path.GetFullPath(Path.Join(Ps1DirectoryPath, "Listing10.23.RegisteringAFinalizerWithProcessExit.ps1"), Environment.CurrentDirectory);

Updated to use IntelliTect.Multitool to find location