AsyncIO icon indicating copy to clipboard operation
AsyncIO copied to clipboard

Assembly for released version 0.1.40 is marked as 0.0.0

Open RRode opened this issue 8 years ago • 9 comments

Hi Doron,

It seems that the released version on nuget has no version set. This is then causing a compilation warning with NetMQ.

RRode avatar Nov 23 '17 10:11 RRode

Indeed, and causes also strange redirection bindings...

grisharav avatar Dec 02 '17 18:12 grisharav

I ran into the same issue too.

When upgrading from 1.25.0 to 1.40.0, it automatically added an assembly binding redirect into app.config:

<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

When I ran the project, it threw an exception:

An unhandled exception of type 'System.IO.FileLoadException' occurred in NetMQ.dll

Additional information: Could not load file or assembly 'AsyncIO, Version=0.1.25.0, Culture=neutral, PublicKeyToken=44a94435bd6f33f8' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

To fix ,I had to manually adjust the binding redirect, so all versions are redirected to version 0.0.0.0:

<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="AsyncIO" publicKeyToken="44a94435bd6f33f8" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-0.1.40.0" newVersion="0.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

sharpe5 avatar Dec 13 '17 13:12 sharpe5

Currently, I cannot upgrade NetMQ.ReactiveExtensions to use AsyncIO v1.40. The problem is that the default assembly language binding redirect that Visual Studio adds to app.config is:

<bindingRedirect oldVersion="0.0.0.0-0.0.0.0" newVersion="0.0.0.0" />

... which has to be hand-edited to this, or else it will throw an exception on startup:

<bindingRedirect oldVersion="0.0.0.0-0.1.40.0" newVersion="0.0.0.0" />

sharpe5 avatar Dec 13 '17 17:12 sharpe5

@sharpe5 can you send a pull request?

somdoron avatar Dec 14 '17 08:12 somdoron

Sure, happy to help! What new version do you want - 0.1.40.1 or 0.1.42.0?

The former is technically correct, and the latter will hopefully encourage people to upgrade.

On 14 Dec 2017 8:12 a.m., "Doron Somech" [email protected] wrote:

@sharpe5 https://github.com/sharpe5 can you send a pull request?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/somdoron/AsyncIO/issues/21#issuecomment-351638146, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOypGhV2TKsJ1eTJviRBZoQRC96wGsuks5tANgwgaJpZM4Qojgq .

sharpe5 avatar Dec 15 '17 09:12 sharpe5

Created a pull request, please let me know if anything needs changing.

This was a really good exercise for me. I will copy the structure of your project when I upgrade NetMQ.ReactiveExtensions to the newer .csproj file format.

Thank you again for your excellent work!

sharpe5 avatar Dec 17 '17 15:12 sharpe5

Any update on this work. I'm running into the same problem.

tylerje avatar Mar 24 '18 16:03 tylerje

Same problem today, May 2018. Although github appears to be at version 0.1.42, nuget delivers 0.1.40 and it's internal version number is still 0.0.0.0. In the end, I downloaded the source. Noticed a few "obsolete" warnings upon compilation

robvon avatar May 31 '18 04:05 robvon

Deploying the latest version 0.1.42.0 to NuGet would fix the issue, as this issue was fixed in pull request #22.

sharpe5 avatar Jun 01 '18 18:06 sharpe5