<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 - cli_oootypes.config is wrong"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=113787">113787</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cli_oootypes.config is wrong
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (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>kpreisert@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I have a .NET (C#) application that uses the LibreOffice CLI assemblies. When I
upgraded my LO installation from 5.3.7 to 5.4.3 this application doesn't work
anymore, because it can't find the .NET assembly "cli_oootypes,
Version=1.0.8.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e". I noticed
that in 5.4.3 (I don't know which version exactly) the version numbers of the
CLI assemblies have been increased (probably related to
<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cli_ assemblies are not correctly versioned"
   href="show_bug.cgi?id=108709">https://bugs.documentfoundation.org/show_bug.cgi?id=108709</a>), so that the
assembly installed by LO 5.4.3 is now at version 1.0.9.0.

This in itself shouldn't be a problem, because the are policy files which
redirect references to old versions to the new (istalled) version. However, the
corresponding policy file cli_oootypes.config contains the following line:
<bindingRedirect oldVersion="CLI_OOOTYPES_OLD_VERSION"
newVersion="CLI_OOOTYPES_NEW_VERSION" />

This is wrong. It should be:
<bindingRedirect oldVersion="1.0.0.0-1.0.8.0" newVersion="1.0.9.0" />

I guess that some build scripts didn't correctly replace the variables here? I
also noticed that cli_oootypes.config contains a license header, whereas the
other *.config files (e.g. cli_basetypes.config) do not.

Steps to Reproduce:
Compile a .NET application that references and uses cli_oootypes.dll at version
1.0.8.0, then try to run it with a newer LO installation that contains version
1.0.9.0.

Actual Results:  
Can't find .NET assembly "cli_oootypes, Version=1.0.8.0, Culture=neutral,
PublicKeyToken=ce2cb7e279207b9e"

Expected Results:
.NET assembly reference should be redirected, application should work as usual


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101
Firefox/56.0</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>