Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Partially fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1467817

A warning is printed when building with -p:MonoSymbolArchive=true:

Warning: Directory obj\Release\120\android\assets contains Java.Interop.dll but no debug symbols file was found.

It turns out we are missing Java.Interop.pdb from our installer?

I went ahead and also added Mono.Posix.pdb and
System.EnterpriseServices.pdb, since we appear to have these in
build output.

@jonathanpeppers
Copy link
Member Author

As I suspected this hit:

error MSB3030: Could not copy the file "/Users/builder/azdo/_work/2/s/xamarin-android/bin/Release/lib/xamarin.android/xbuild-frameworks/MonoAndroid/v1.0/Java.Interop.pdb" because it was not found. 

jonathanpeppers added a commit to jonathanpeppers/java.interop that referenced this pull request Feb 28, 2022
Context: dotnet/android#6799

dotnet/android#6799 is missing `Java.Interop.pdb` when
building in `Release` mode. I suspect this is due to `$(DebugType)`
set to `full`. This creates `Java.Interop.dll.mdb`!

The modern approach is to use `portable` for both `Debug` and
`Release` builds, so we should just use that.
jonpryor pushed a commit to dotnet/java-interop that referenced this pull request Mar 1, 2022
Context: dotnet/android#6799

dotnet/android#6799 is missing `Java.Interop.pdb` when
building in `Release` configuration.  I suspect this is due to
`$(DebugType)`=full, which creates `Java.Interop.dll.mdb`!

The modern approach is to use `portable` for both `Debug` and
`Release` configurations, so we should just use that.
Partially fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1467817

A warning is printed when building with `-p:MonoSymbolArchive=true`:

    Warning: Directory obj\Release\120\android\assets contains Java.Interop.dll but no debug symbols file was found.

It turns out we are missing `Java.Interop.pdb` from our installer?

I went ahead and also added `Mono.Posix.pdb` and
`System.EnterpriseServices.pdb`, since we appear to have these in
build output.
Changes: dotnet/java-interop@cbd9666...aae23c9

* [ci] Move CI builds to 1ES's hardened images.
* [Java.Interop] use $(DebugType)=portable
@dotnet dotnet deleted a comment from azure-pipelines bot Mar 1, 2022
@jonathanpeppers jonathanpeppers marked this pull request as ready for review March 1, 2022 20:19
@jonpryor jonpryor merged commit 233e551 into dotnet:main Mar 2, 2022
@jonathanpeppers jonathanpeppers deleted the classic-missing-pdbs branch March 2, 2022 14:47
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants