Skip to content

Conversation

@jonpryor
Copy link
Contributor

Fixes: #1493

Allows injection of <dllmap/> entries into
Java.Runtime.Environment.dll.config.

Use <fileapi.h>, not <FileAPI.h>, as Linux wants the former.

Add $(CecilSourceDirectory) support.

Fixes: dotnet#1493

Allows injection of `<dllmap/>` entries into
`Java.Runtime.Environment.dll.config`.

Use `<fileapi.h>`, not `<FileAPI.h>`, as Linux wants the former.

Add `$(CecilSourceDirectory)` support, and use that support so that
`Xamarin.Android.Cecil.dll` and `Xamarin.Android.Cecil.Mdb.dll` are
built from `external/mono/external/cecil` sources, *not* from
`external/Java.Interop/external/cecil` sources.
@jonpryor jonpryor force-pushed the jonp-bump-ji-bed29582 branch from 373cd98 to 7ea1a81 Compare May 30, 2018 06:01
@jonpryor jonpryor merged commit 9bc51ae into dotnet:master May 30, 2018
jonathanpeppers added a commit to jonathanpeppers/java.interop that referenced this pull request May 30, 2018
…ctory)

Context: dotnet/android#1747

Downstream in xamarin-android, I started getting a build failure on
Windows such as:

    xamarin-android\external\Java.Interop\src\Xamarin.Android.Cecil\Xamarin.Android.Cecil.targets(23,5): error MSB3375: The file "..\..\bin\Debug\\Xamarin.Android.Cecil.dll" does not exist.
    xamarin-android\external\Java.Interop\src\Xamarin.Android.Cecil\Xamarin.Android.Cecil.targets(23,5): error MSB3375: The file "..\..\bin\Debug\\Xamarin.Android.Cecil.Mdb.dll" does not exist.

Looking in my `external\Java.Interop\bin\Debug` directory, the
`Mono.Cecil` assemblies were named `Mono.Cecil.*` instead of
`Xamarin.Android.*`.

I think this was an oversight, but I don't know how the builds were
green...

Looking at `Mono.Cecil.csproj` in
`xamarin-android/external/mono/external/cecil` there was no way to
override `AssemblyName`. But we can use the `<Move />` task instead.

To fix this:
- Added a `_MonoCecilAssemblies` to check for any files named
  `Mono.Cecil.*`
- `<Move />` the files to start with `Xamarin.Android.*` instead.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 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.

1 participant