Add-BindingRedirect (Package Manager Console in Visual Studio)
Available only within the NuGet Package Manager Console in Visual Studio on Windows.
Examines all assemblies within the output path for a project and adds binding redirects to the application or web configuration file where necessary. This command is run automatically when installing a package.
For details on binding redirects and why they are used, see Redirecting Assembly Versions in the .NET documentation.
Add-BindingRedirect [-ProjectName] <string> [<CommonParameters>]
|ProjectName||(Required) The project to which to add binding redirects. The -ProjectName switch itself is optional.|
None of these parameters accept pipeline input or wildcard characters.
Add-BindingRedirect supports the following common PowerShell parameters: Debug, Error Action, ErrorVariable, OutBuffer, OutVariable, PipelineVariable, Verbose, WarningAction, and WarningVariable.
Add-BindingRedirect MyProject Add-BindingRedirect -ProjectName MyProject
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.