DTW-DanWard / PowerShell-Beautifier

A whitespace reformatter and code cleaner for Windows PowerShell and PowerShell Core
MIT License
333 stars 38 forks source link

Make parameter types for [System.IO.File]::WriteAllLines more explicit (error on NanoServer) #24

Closed DTW-DanWard closed 7 years ago

DTW-DanWard commented 7 years ago

.NET Core on NanoServer is having difficulty finding the correct (only) [System.IO.File]::WriteAllLines method call. Probably need to define second param more explicitly as System.Collections.Generic.IEnumerable[string].

Add-DTWFileEncodingByteOrderMarker : Cannot find an overload for "WriteAllLines" and the argument count: "3". At C:\temp\PowerShell-Beautifier\src\DTW.PS.Beautifier.Main.psm1:1288 char:7 Add-DTWFileEncodingByteOrderMarker -Path $DestinationPathTemp - ...