We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1ffeb commit bfeb47cCopy full SHA for bfeb47c
src/Chapter10/Listing10.23.RegisteringAFinalizerWithProcessExit.ps1
@@ -23,7 +23,9 @@ try {
23
Get-Item "$PSScriptRoot/$ConsoleProgramProjectName" -ErrorAction Ignore | Remove-Item -Recurse
24
Set-PSDebug -Trace $traceLevel
25
dotnet new Console --output "$PSScriptRoot/$ConsoleProgramProjectName"
26
-
+ New-Item -Path 'Directory.Props.build' -ItemType File
27
+ Set-Content Directory.Props.build '<Project></Project>'
28
+
29
$SutCSFile = split-path -leaf $MyInvocation.MyCommand.Definition
30
$SutCSFile = "$PSScriptRoot/$([IO.Path]::GetFileNameWithoutExtension($SutCSFile)).cs"
31
if(-not (Test-Path $SutCSFile)) { throw "Unable to find the file with the type to export ('$SutCSFile')"}
0 commit comments