VisualBasicProjectFileManagerAutoGenerateBindingRedirects Property
Gets or sets a value that indicates whether binding redirects may be automatically added to the app configuration file
to override assembly unification.
Namespace: DevCase.Core.Diagnostics.VisualStudio.SolutionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public bool AutoGenerateBindingRedirects { get; set; }
Public Property AutoGenerateBindingRedirects As Boolean
Get
Set
Dim instance As VisualBasicProjectFileManager
Dim value As Boolean
value = instance.AutoGenerateBindingRedirects
instance.AutoGenerateBindingRedirects = value
public:
property bool AutoGenerateBindingRedirects {
bool get ();
void set (bool value);
}
member AutoGenerateBindingRedirects : bool with get, set
No code example is currently available or this language may not be supported.
Property Value
Boolean to enable binding redirects, otherwise,
.
Starting with Visual Studio 2013, when you compile apps that target the .NET Framework 4.5.1,
binding redirects may be automatically added to the app configuration file to override assembly unification.
Binding redirects are added if your app or its components reference more than one version of the same assembly,
even if you manually specify binding redirects in the configuration file for your app.
The automatic binding redirection feature affects traditional desktop apps and web apps that target the .NET Framework 4.5.1,
although the behavior is slightly different for a web app.
You can enable automatic binding redirection if you have existing apps that target previous versions of the .NET Framework,
or you can disable this feature if you want to keep manually authored binding redirects.
This is a code example.
No code example is currently available or this language may not be supported.
Dim vbproj As New VisualBasicProjectFileManager("C:\project.vbproj")
vbproj.AutoGenerateBindingRedirects = True
vbproj.Document.Save("C:\modified.vbproj", SaveOptions.None)
Process.Start("notepad.exe", "C:\modified.vbproj")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.