Adds binding redirect for applicable assemblies only - #1187
Conversation
|
I think there is an issue with using things like when I run paket install for the main Paket project then this will get affected. we should rename fsproj files in the before folder to fsprojtemplate and remove the suffix when we copy the files to temp. |
|
In terms of behaviour, am I correct in thinking that rather than inserting BRs from all dependencies, it now checks what dependencies there are for each project one by one, and generates specific BRs for each of them? |
|
Just to clarify: my comment was only referring to the integration tests. We
|
8c9d44d to
142e28d
Compare
|
oops 😊 done in 142e28d |
|
@isaacabraham kind of. It doesn't generate BRs for each referenced dependency, but for required referenced dependency only. That means it'll only generate BRs for dependencies that are referenced and have a higher version than the version required for another assembly. For example: This PR will only generate BRs when needed. That means if a project has a dependency on However, if the project references |
|
@mrinaldi so that's even better than what I was thinking - basically the minimal set of BRs that are required. LGTM. |
|
is there something we should write into the docs? |
|
/cc @dnauck |
|
What about transient dependencies that needs BRs? E.g. Dependency 1 has transient dependency on Newtonsoft.Json 5.x and Dependency 2 has transient dependency on Newtonsoft.Json 6.x ? Looks like your PR (just read the text here) will not generate a BR for Newtonsoft.Json in this case but this is required. |
|
@dnauck actually, it does. Using this And this This is the resulting app.config: |
|
Added 7b3533e to make sure that even if |
|
@forki We can improve the docs describing the new behavior, albeit the old behavior is not described. |
Adds binding redirect for applicable assemblies only
|
cool! thanks so much! |
Fixes #809.
/cc @isaacabraham