Skip to content

Commit

Permalink
Fix assembly not found on Android in Debug configuration (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Feb 11, 2023
1 parent 20de3b0 commit b98e8f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixes

- Fix assembly not found on Android in Debug configuration ([#2175](https://github.com/getsentry/sentry-dotnet/pull/2175))

## 3.28.1

### Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ public AndroidAssemblyDirectoryReader(ZipArchive zip, IList<string> supportedAbi

public PEReader? TryReadAssembly(string name)
{
if (File.Exists(name))
{
// The assembly is already extracted to the file system. Just read it.
var stream = File.OpenRead(name);
return new PEReader(stream);
}

var zipEntry = FindAssembly(name);
if (zipEntry is null)
{
Expand Down

0 comments on commit b98e8f5

Please sign in to comment.