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
* Compile the **ConsoleTester** project. This project is referencing **Lib** dll with version 1.0.0.0
4
+
* Copy and overwrite the files from the **!** folder into the build folder
5
+
***Lib.dll** reference is of version 1.1.0.0
6
+
***_ConsoleTester.exe.config** provides binding redirect to this version. Note it is required to keep this file a different name from the default (e.g. **ConsoleTester.exe.config**) otherwise built-in binding redirect will be used from the .exe file and the **AssemblyResolver** will not be called (not the case for the .dll projects)
Copy file name to clipboardExpand all lines: src/Utils/Reflection/AppConfigBindingRedirectReferenceResolver.cs
+53-44
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,19 @@
7
7
8
8
usingSystem;
9
9
usingSystem.IO;
10
+
usingSystem.Linq;
10
11
usingSystem.Reflection;
11
12
usingSystem.Xml;
12
13
usingSystem.Xml.Linq;
13
14
usingSystem.Xml.XPath;
14
15
15
16
namespaceXarial.XToolkit.Reflection
16
17
{
18
+
/// <summary>
19
+
/// Resolver for <see cref="Helpers.AssemblyResolver"/> allowing to redirect assembly binding based on the .config files
20
+
/// </summary>
21
+
/// <remarks>This resolver can be useful for the plugin applications (.dlls) when the app.config files will not be considered for binding redirects
22
+
/// It can also be useful when the binding redirects specified in the separate file which is not named after the application name (e.g. custom binding redirect without an automatic option)</remarks>
0 commit comments