Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support not putting the full path to the pdb in assemblies #372

Closed
rolfbjarne opened this issue Apr 6, 2017 · 1 comment
Closed

Support not putting the full path to the pdb in assemblies #372

rolfbjarne opened this issue Apr 6, 2017 · 1 comment

Comments

@rolfbjarne
Copy link
Contributor

Cecil writes the full path to the pdb here: https://github.com/jbevain/cecil/blob/7297b51/Mono.Cecil.Cil/PortablePdb.cs#L304

Supporting a way to only write the filename would fix this: https://bugzilla.xamarin.com/show_bug.cgi?id=54578

Roslyn has a similar issue: dotnet/roslyn#9813

@jbevain
Copy link
Owner

jbevain commented Apr 18, 2017

Fixed by #380.

@jbevain jbevain closed this as completed Apr 18, 2017
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Jan 28, 2019
… written to assemblies.

We need our 32-bit and 64-bit assemblies to be identical so that we can avoid
duplicating the .dll in fat apps.

One difference used to be that the .dll contained the full path to the
corresponding .pdb ([1]), but we changed cecil to only write the filename
([2]). Unfortunately this change breaks something else, so it has to be
reverted ([3]).

This implements a different solution: we provide a custom symbol writer to
Cecil, which only writes the filename of the pdb in the .dll, not the full
path.

[1]: https://bugzilla.xamarin.com/show_bug.cgi?id=54578
[2]: jbevain/cecil#372
[3]: jbevain/cecil#554
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Jan 28, 2019
… written to assemblies.

We need our 32-bit and 64-bit assemblies to be identical so that we can avoid
duplicating the .dll in fat apps.

One difference used to be that the .dll contained the full path to the
corresponding .pdb ([1]), but we changed cecil to only write the filename
([2]). Unfortunately this change breaks something else, so it has to be
reverted ([3]).

This implements a different solution: we provide a custom symbol writer to
Cecil, which only writes the filename of the pdb in the .dll, not the full
path.

[1]: https://bugzilla.xamarin.com/show_bug.cgi?id=54578
[2]: jbevain/cecil#372
[3]: jbevain/cecil#554
akoeplinger pushed a commit to xamarin/xamarin-macios that referenced this issue Feb 13, 2019
… written to assemblies.

We need our 32-bit and 64-bit assemblies to be identical so that we can avoid
duplicating the .dll in fat apps.

One difference used to be that the .dll contained the full path to the
corresponding .pdb ([1]), but we changed cecil to only write the filename
([2]). Unfortunately this change breaks something else, so it has to be
reverted ([3]).

This implements a different solution: we provide a custom symbol writer to
Cecil, which only writes the filename of the pdb in the .dll, not the full
path.

[1]: https://bugzilla.xamarin.com/show_bug.cgi?id=54578
[2]: jbevain/cecil#372
[3]: jbevain/cecil#554

(cherry picked from commit 53874c8)

# Conflicts:
#	tools/mtouch/mtouch.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants