Skip to content

tompazourek/BindingRedirectR

Repository files navigation

BindingRedirectR

A tool to analyse assembly dependencies, possibly generate binding redirects.

IMPORTANT! It's only a proof of concept (pre-alpha) at this stage.

Run

To run, execute in command line:

BindingRedirectR.exe input.json

The generated report will be in: input.json.log file in the same folder.

The input.json file looks something like this:

{
  "baseDirectory": null,
  "mainAssembly": "BindingRedirectR.exe",
  "assemblies": [
    "Serilog*.dll",
    "Newtonsoft.Json.dll",
    "Microsoft.Extensions.FileSystemGlobbing.dll"
  ],
  "additionalDependencies": [
    {
      "dependant": "BindingRedirectR.exe",
      "dependencies": [ "System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ]
    }
  ]
}

The assembly strings can be either file paths, file globbing patterns, or fully qualified assembly names.


Another example input:

{
  "baseDirectory": "C:\\dev\\my-app-repo\\src\\MyApp\\bin",
  "mainAssembly": "MyApp.dll",
  "assemblies": [
    "*.dll"
  ],
  "additionalDependencies": [
    {
      "comment": "Dynamic reference through Web.config",
      "dependant": "MyApp.dll",
      "dependencies": [ "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" ]
    },
    {
      "comment": "Referece missing, but it's needed",
      "dependant": "System.Web.WebPages.dll",
      "dependencies": [ "System.Web.Helpers.dll" ]
    }
  ]
}

About

🔧 A tool to analyse assembly dependencies, possibly generate binding redirects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages