Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

### Fixes

- StackTrace parsing on Windows Powershell 5.1 ([#50](https://github.com/getsentry/sentry-powershell/pull/50))
- StackTrace parsing on Windows PowerShell 5.1 ([#50](https://github.com/getsentry/sentry-powershell/pull/50))
- Fix out of bounds context for short scripts ([#58](https://github.com/getsentry/sentry-powershell/pull/58))
- Windows PowerShell needs both unsafe 4.5.3 and 6.0.0 dll ([#61](https://github.com/getsentry/sentry-powershell/pull/61))

### Dependencies

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package = System.Runtime.CompilerServices.Unsafe
version = 4.5.3
assemblyVersion = 4.0.4.1
licenseFile = LICENSE.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package = System.Runtime.CompilerServices.Unsafe
version = 6.0.0
assemblyVersion = 6.0.0.0
licenseFile = LICENSE.TXT
10 changes: 6 additions & 4 deletions dependencies/download.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function Download([string] $dependency, [string] $TFM, [string] $targetTFM = $nu
$assemblyVersion = $props.ContainsKey('assemblyVersion') ? $props.assemblyVersion : "$($props.version).0"
}

$package = $props.ContainsKey('package') ? $props.package : $dependency
$targetLibFile = "$libDir/$targetTFM/$dependency.dll"
$targetVersionFile = "$libDir/$targetTFM/$dependency.version"
$targetLicenseFile = "$libDir/$targetTFM/$dependency.license"
Expand Down Expand Up @@ -58,7 +59,7 @@ function Download([string] $dependency, [string] $TFM, [string] $targetTFM = $nu
Remove-Item $targetLicenseFile -Force
}

$archiveName = "$($dependency.ToLower()).$($props.version).nupkg"
$archiveName = "$($package.ToLower()).$($props.version).nupkg"
$archiveFile = "$downloadDir/$archiveName"

if (Test-Path $archiveFile)
Expand All @@ -67,8 +68,8 @@ function Download([string] $dependency, [string] $TFM, [string] $targetTFM = $nu
}
else
{
Write-Output "Downloading $archiveName"
$sourceUrl = "https://globalcdn.nuget.org/packages/$archiveName"
Write-Output "Downloading $sourceUrl"
Invoke-WebRequest $sourceUrl -OutFile $archiveFile
}

Expand All @@ -89,7 +90,7 @@ function Download([string] $dependency, [string] $TFM, [string] $targetTFM = $nu

try
{
extract "lib/$TFM/$dependency.dll" $targetLibFile
extract "lib/$TFM/$package.dll" $targetLibFile
if ($props.ContainsKey('licenseFile'))
{
extract $props.licenseFile $targetLicenseFile
Expand Down Expand Up @@ -120,7 +121,8 @@ Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Collections.Immut
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Memory'
Download -TFM 'net46' -TargetTFM 'net462' -Dependency 'System.Numerics.Vectors'
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Reflection.Metadata'
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Runtime.CompilerServices.Unsafe'
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Runtime.CompilerServices.Unsafe.4'
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Runtime.CompilerServices.Unsafe.6'
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Text.Encodings.Web'
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Text.Json'
Download -TFM 'net461' -TargetTFM 'net462' -Dependency 'System.Threading.Tasks.Extensions'
Expand Down