Skip to content

Commit ef6d31c

Browse files
Remove LumenWorksCsvReader package handling
Eliminated directory creation, download, extraction, and file copy steps related to LumenWorksCsvReader in the build script. This streamlines the build process and removes unused dependencies.
1 parent 96b15ca commit ef6d31c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

build/build.ps1

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ $tempdir = Join-Path ([System.IO.Path]::GetTempPath()) "dbatools-build"
158158
# Create all required directories
159159
$null = New-Item -ItemType Directory $tempdir -Force -ErrorAction Ignore
160160
$null = New-Item -ItemType Directory (Join-Path $libPath "desktop/third-party/bogus") -Force
161-
$null = New-Item -ItemType Directory (Join-Path $libPath "desktop/third-party/LumenWorks") -Force
162161
$null = New-Item -ItemType Directory (Join-Path $libPath "core/third-party/bogus") -Force
163-
$null = New-Item -ItemType Directory (Join-Path $libPath "core/third-party/LumenWorks") -Force
164162
$null = New-Item -ItemType Directory (Join-Path $libPath "core/lib/runtimes") -Force
165163
$null = New-Item -ItemType Directory (Join-Path $tempPath "bogus") -Force
166164
$null = New-Item -ItemType Directory (Join-Path $tempdir "nuget") -Force
@@ -169,12 +167,10 @@ Register-PackageSource -provider NuGet -name nugetRepository -Location https://w
169167

170168
# Download all required packages
171169
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/Bogus -OutFile (Join-Path $tempPath "bogus.zip")
172-
Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/LumenWorksCsvReader -OutFile (Join-Path $tempPath "LumenWorksCsvReader.zip")
173170

174171
$ProgressPreference = "Continue"
175172

176173
# Extract all packages
177-
7z x (Join-Path $tempPath "LumenWorksCsvReader.zip") "-o$(Join-Path $tempPath "LumenWorksCsvReader")" -y
178174
7z x (Join-Path $tempPath "bogus.zip") "-o$(Join-Path $tempPath "bogus")" -y
179175

180176

@@ -211,10 +207,6 @@ if (-not $bogusCoreCopied) {
211207
Write-Warning "Bogus.dll for .NET Core not found in expected locations"
212208
}
213209

214-
# Copy LumenWorks files for both frameworks
215-
Copy-Item (Join-Path $tempPath "LumenWorksCsvReader/lib/net461/LumenWorks.Framework.IO.dll") -Destination (Join-Path $libPath "desktop/third-party/LumenWorks/LumenWorks.Framework.IO.dll") -Force
216-
Copy-Item (Join-Path $tempPath "LumenWorksCsvReader/lib/netstandard2.0/LumenWorks.Framework.IO.dll") -Destination (Join-Path $libPath "core/third-party/LumenWorks/LumenWorks.Framework.IO.dll") -Force
217-
218210
# Core files are already in place from dotnet publish
219211

220212
# Copy var/misc files to appropriate locations

0 commit comments

Comments
 (0)