2021-06-02 16:07:55 +03:00
|
|
|
# .net tests
|
|
|
|
|
|
|
|
## size-comparison
|
|
|
|
|
2022-02-18 15:04:28 +03:00
|
|
|
To install the latest `appcompare` tool do:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ dotnet tool install --global appcompare
|
|
|
|
```
|
|
|
|
|
|
|
|
You can update it to the latest version by running:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ dotnet tool update --global appcompare
|
|
|
|
```
|
|
|
|
|
|
|
|
The current directory might point to a different and incompatible dotnet
|
|
|
|
SDK, resulting in an error. However running the command from a different
|
|
|
|
location (outside the repo) should work.
|
|
|
|
|
2021-06-02 16:07:55 +03:00
|
|
|
### Easier Analysis
|
|
|
|
|
|
|
|
If you want to read/compare the IL inside the assemblies you need to disable IL stripping.
|
|
|
|
|
|
|
|
* Legacy (oldnet)
|
|
|
|
|
|
|
|
Add this option inside the `Release|iPhone` configuration of `size-comparison/MySingleView/oldnet/MySingleView.csproj`
|
|
|
|
|
|
|
|
```xml
|
|
|
|
<MtouchExtraArgs>--nostrip</MtouchExtraArgs>
|
|
|
|
```
|
|
|
|
|
|
|
|
* net6
|
|
|
|
|
2021-10-05 17:43:22 +03:00
|
|
|
Build with `/p:EnableAssemblyILStripping=false` set. The `MtouchExtraArgs` legacy option is also honored.
|