Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 5b400df

Browse files
committed
Script to clean out generated files
1 parent 599c3ca commit 5b400df

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
$testProjectFolders = Get-ChildItem -Filter "Sample.Website.Tests.*"
2+
3+
foreach ($folder in $testProjectFolders) {
4+
5+
$files = $folder | Get-ChildItem -Recurse | where { $_.Name -eq "app.config" -or $_.Name.EndsWith(".feature.cs") }
6+
Write-Host "`nFound $($files.Count) generated file(s) in $folder"-ForegroundColor Green
7+
8+
foreach ($file in $files) {
9+
"Removing: $($file.FullName)"
10+
Remove-Item -Path $file.FullName
11+
}
12+
}

samples/VS2017/SpecFlow 2.1.0/net461/Sample.Website.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{48FBC6C7-C182-459E-9E56-E8653EFA00E7}"
1515
ProjectSection(SolutionItems) = preProject
1616
NuGet.config = NuGet.config
17+
Reset.ps1 = Reset.ps1
1718
EndProjectSection
1819
EndProject
1920
Global

0 commit comments

Comments
 (0)