Skip to content

SourceLink & generated files? #8690

Open
@jonpryor

Description

@jonpryor

Commit 7b4d4b8 added SourceLink support, but noted:

TODO:

What should be done about generated files?

Looks like there is a csc /embed option which embeds all source code into a .pdb file: dotnet/roslyn#12625

It also looks like the $(EmbedAllSources) MSBuild property controls csc /embed:

This suggests that if we set $(EmbedAllSources)=true in Mono.Android.csproj, Mono.Android.pdb would contain all generated source code, meaning you could plausibly step into Java.Lang.Object.Clone().

On the one hand, that sounds awesome.

On the other hand, we generate 179MB of generated C# source code for API-34. What would that do to the .pdb?

Metadata

Metadata

Assignees

Labels

Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).enhancementProposed change to current functionality.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions