Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 1ddc0b4b74
Get Mono.Cecil from NuGet everywhere. (#19535)
Also:

* Store the version in Directory.Build.props, which makes it much easier to update.
* Bump all versions to latest (0.11.5).
2023-12-04 20:15:03 +01:00
Steve Hawley d57f205feb
[dotnet] Turn class-redirector into a Task (#18244)
Rework the class-redirector as an MSBuild Task.
2023-05-18 10:55:37 -04:00
Steve Hawley ae1f03ea2f
[dotnet] Added one more test to ensure that multiple types in a file work. (#18073) 2023-04-14 16:06:51 -04:00
Steve Hawley 7f82266b75
[dotnet] Added tests, fixed bugs (#17979)
Stunt testing!

What happens is this: we write a string of C# to a file. This C# acts as
a mock of the ObjCRuntime namespace it also includes a one or more
classes that act internally like NSObject descendants at least as far as
the `class_ptr` field is concerned.

The test compiles this code, runs the rewriter, then executes the final
code collecting the output.
The tests include the following:

1. tool not run, code works as expected
2. tool run, `ClassHandle` now returns a different value
3. tool run, a class not listed for changing stays the same
4. tool run on a more authentic cctor, the cctor gets removed entirely

The code to run a process and collect its output was taken from the
binding-tools-for-swift tests.

All tests pass.

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
2023-04-14 10:16:13 -04:00
Steve Hawley bef5d47ef4
[dotnet] preliminary cut for class-redirector (#17951)
This is the preliminary version of class-redirector addressing issue
#16671
2023-04-03 12:37:26 -04:00