saving 10.23 listing files
RENAME
src/Chapter10/Listing10.23.DefiningAFinalizerWithProcessExit.cs
src/Chapter10/Listing10.23.RegisteringAFinalizerWithProcessExit.cs
MODIFY
src/Chapter10/Listing10.23.RegisteringAFinalizerWithProcessExit.ps1
src/Chapter10/Listing10.23.RegisteringAFinalizerWithProcessExit.ps1
@@ -30,8 +30,8 @@ try {
$codeListing = @('namespace ProcessExitTestProgram') + (
Get-Content $SutCSFile |
Select-Object -Skip 1)
- $codeListing > "$PSScriptRoot\$ConsoleProgramProjectName\GeoTypes.cs"
- Get-Content "$PSScriptRoot\$ConsoleProgramProjectName\GeoTypes.cs" # Display the listing
+ $codeListing > "$PSScriptRoot\$ConsoleProgramProjectName\Program.cs"
+ Get-Content "$PSScriptRoot\$ConsoleProgramProjectName\Program.cs" # Display the listing
#dotnet add "$PSScriptRoot\$ConsoleProgramProjectName\$ConsoleProgramProjectName.csproj"
dotnet run -p "$PSScriptRoot\$ConsoleProgramProjectName.csproj"

saving 10.23 listing files