<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Using CLI assemblies result in Invalid IL code in uno.util.Bootstrap:bootstrap"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=135138">135138</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Using CLI assemblies result in Invalid IL code in uno.util.Bootstrap:bootstrap
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.5.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Mac OS X (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>sdk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>peter@willow-media.nl
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When attempting to run a .Net/C# solution on MacOS (with Rider), running with
Mono (.Net 4.8), with the cli assemblies, the follow exception occurs:

```
Invalid IL code in uno.util.Bootstrap:bootstrap (): IL_0036: calli    
0x11000001
```

As far as I can tell, the cli assemblies are .Net 1.0/1.1, which is quite old.
Its unclear to my how these assemblies are created, as a part of .cs files are
in the source. I guess the rest is build from C code?

It would be very interesting to migrate the cli code to .NetStandard 2.0, so
the code could be used in a more up-to-date environment, like Asp.Net Core for
example. 


Steps to Reproduce:
1. Create new CS console or unit test project
2. Add all assemblies to the project
3. Debug a class with "XComponentContext localContext =
uno.util.Bootstrap.bootstrap();" in it

Actual Results:
The following exception occurs:

Invalid IL code in uno.util.Bootstrap:bootstrap (): IL_0036: calli    
0x11000001


Expected Results:
An XComponentContext object would be returned


Reproducible: Always


User Profile Reset: No



Additional Info:
Create an Uno connection to a headless Libreoffice instance</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>