Skip to content
This repository

Fixed issue #28 #29

Merged
merged 1 commit into from over 2 years ago

2 participants

Ian Davis Steve Wagner
Ian Davis

Changing $null to { [string]::IsNullOrEmpty($_) } in bitness detection as "".Substring returns an empty string instead of $null.

Ian Davis idavis fixing case where framework is set using 3 digits (3.0/4.0). The bit …
…substring is empty, not null. This will fix all specs.
4710deb
Steve Wagner lanwin merged commit 4710deb into from
Steve Wagner lanwin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 19, 2012
Ian Davis idavis fixing case where framework is set using 3 digits (3.0/4.0). The bit …
…substring is empty, not null. This will fix all specs.
4710deb
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  psake.psm1
2  psake.psm1
@@ -522,7 +522,7 @@ function Configure-BuildEnvironment {
522 522 'x64' {
523 523 $bitness = 'Framework64'
524 524 }
525   - $null {
  525 + { [string]::IsNullOrEmpty($_) } {
526 526 $ptrSize = [System.IntPtr]::Size
527 527 switch ($ptrSize) {
528 528 4 {

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.