Skip to content

Commit 93d9f19

Browse files
author
Oren Novotny
committed
Ensure git tree has no dirty commits from AssemblyInfo
1 parent d1c1c1c commit 93d9f19

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Ix.NET/Source/build-new.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ Write-Host "Running tests" -Foreground Green
7272
$testDirectory = Join-Path $scriptPath "Tests"
7373
dotnet test $testDirectory -c $configuration
7474

75+
Write-Host "Reverting AssemblyInfo's" -Foreground Green
76+
gci $scriptPath -re -in AssemblyInfo.cs | %{ git checkout $_ }
77+

Rx.NET/Source/build-new.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,5 @@ Write-Host "Running tests" -Foreground Green
8383
$testDirectory = Join-Path $scriptPath "Tests.System.Reactive"
8484
dotnet test $testDirectory -c "$configuration"
8585

86+
Write-Host "Reverting AssemblyInfo's" -Foreground Green
87+
gci $scriptPath -re -in AssemblyInfo.cs | %{ git checkout $_ }

build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ Write-Host "Building Rx.NET" -ForegroundColor Green
2424
.\Rx.NET\Source\build-new
2525

2626
Write-Host "Building Ix.NET" -ForegroundColor Green
27-
.\Ix.NET\Source\build-new
27+
.\Ix.NET\Source\build-new
28+
29+
Write-Host "Reverting AssemblyInfo's" -Foreground Green
30+
gci -re -in AssemblyInfo.cs | %{ git checkout $_ }

0 commit comments

Comments
 (0)