Add-BindingRedirect (Package Manager Console in Visual Studio)
Available only within the 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.
Note
This only applies to scenarios using a packages.config file. For more information, see NuGet packages.config file reference.
For details on binding redirects and why they are used, see Redirecting Assembly Versions in the .NET documentation.
Syntax
Add-BindingRedirect [-ProjectName] <string> [<CommonParameters>]
Parameters
Parameter | Description |
---|---|
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.
Common Parameters
Add-BindingRedirect
supports the following common PowerShell parameters: Debug, Error Action, ErrorVariable, OutBuffer, OutVariable, PipelineVariable, Verbose, WarningAction, and WarningVariable.
Examples
Add-BindingRedirect MyProject
Add-BindingRedirect -ProjectName MyProject
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho