# Xamarin

### Reverse

Extract the DLLs then use ILSpy:

#### Step 1:

* Mac) Install Visual Studio for Mac (<http://visualstudio.microsoft.com/vs/mac/>). It has MonoDevelop, all .NET tools, a full IDE, etc...
* Windows) Install Visual Studio or any other way to get the "dotnet" command line tool.
* Linux) Get the "dotnet" command line tool.

#### Step 2:

Go to a Terminal prompt and type `dotnet tool install ilspycmd -g` to install the official ilspy command line version.

Global tools are installed in the following directories by default when you specify the `-g` or `--global` option:

| OS          | Path                          |
| ----------- | ----------------------------- |
| Linux/macOS | `$HOME/.dotnet/tools`         |
| Windows     | `%USERPROFILE%\.dotnet\tools` |

#### Step 3:

Read usage instructions here: <https://github.com/icsharpcode/ILSpy/tree/master/ICSharpCode.Decompiler.Console>. It is very simple. Most of the time you just run it with `ilspycmd -p -o <folder> <dll file>` to decompile to an output folder and make a buildable project file (that is what `-p` does).

Source: <https://github.com/aerror2/ILSpy-For-MacOSX/issues/6>

{% embed url="<https://www.x41-dsec.de/security/news/working/research/2020/09/22/xamarin-dll-decompression/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://techbrunch.gitbook.io/workspace/mobile/xamarin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
