Skip to content

Commit bfeb47c

Browse files
Update powershell
1 parent 5d1ffeb commit bfeb47c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Chapter10/Listing10.23.RegisteringAFinalizerWithProcessExit.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ try {
2323
Get-Item "$PSScriptRoot/$ConsoleProgramProjectName" -ErrorAction Ignore | Remove-Item -Recurse
2424
Set-PSDebug -Trace $traceLevel
2525
dotnet new Console --output "$PSScriptRoot/$ConsoleProgramProjectName"
26-
26+
New-Item -Path 'Directory.Props.build' -ItemType File
27+
Set-Content Directory.Props.build '<Project></Project>'
28+
2729
$SutCSFile = split-path -leaf $MyInvocation.MyCommand.Definition
2830
$SutCSFile = "$PSScriptRoot/$([IO.Path]::GetFileNameWithoutExtension($SutCSFile)).cs"
2931
if(-not (Test-Path $SutCSFile)) { throw "Unable to find the file with the type to export ('$SutCSFile')"}

0 commit comments

Comments
 (0)