You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Double-click-to-add-binding-redirect warning adds only System.Net.Http:
Warning Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Net.Http" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" /></dependentAssembly></assemblyBinding> WebApplication5
We might only need to remove it from netfx.forceconflicts.dll, which could help lessen the amount of perf we give back, but that needs testing.
Note
This doesn't impact non-web projects that can use AutoGenerateBindingRedirects because MSBuild will turn on FindDependenciesOfExternallyResolvedReferences in that case:
Uh oh!
There was an error while loading. Please reload this page.
This is a regression in VS 15.8 Preview 2.
The root cause is in #1725, but VS 15.8 P2 is the first VS release to bundle extensions from a branch with that change.
Repro steps
Expected result
Double-click-to-add-binding-redirect warning adds a whole bunch of binding redirects
Actual result
Double-click-to-add-binding-redirect warning adds only System.Net.Http:
Workaround
Set this in .csproj
Potential fix
Stop setting the externally resolved bit on extensions-provided assemblies here:
sdk/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.NETFramework.targets
Line 126 in 220b970
We might only need to remove it from netfx.forceconflicts.dll, which could help lessen the amount of perf we give back, but that needs testing.
Note
This doesn't impact non-web projects that can use AutoGenerateBindingRedirects because MSBuild will turn on FindDependenciesOfExternallyResolvedReferences in that case:
https://github.com/Microsoft/msbuild/blob/4ef6bb1fb204ea9a632819484c2983bcf6e6ea96/src/Tasks/Microsoft.Common.CurrentVersion.targets#L2099-L2107
@dsplaisted @AlexGhiondea
The text was updated successfully, but these errors were encountered: