Where is Nuget Get-Project -All | Add-BindingRedirect get your version numbers?

I am trying to synchronize all versions of a DLL in my solution with many projects. I noted that my app.config contains several assembly binding redirects, for example:

  <dependentAssembly>
    <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
  </dependentAssembly>

However, as far as I can tell through the NuGet package manager, there are no packages requiring consolidation, and all projects point to version 4.4.1 of this assembly

I tried the advice of this blog post . I removed all binding redirects and tried to regenerate through:

Get-Project -All | Add-BindingRedirect

According to the NuGet Documentation, it Add-BindingRedirect should check the output path of the projects. I assume this means the bin folder.

Get-Project -All | Add-BindingRedirect app.config.

NuGet Get-Project -All | Add-BindingRedirect ?

NuGet?

+4
1

Visual Studio 2013, , .NET Framework 4.5.1, . , , (app.config). , . app.config . , , .NET Framework, , . , , . -, , , , - .

: ,

0

Source: https://habr.com/ru/post/1693441/


All Articles