This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
checknobindingredirectstask.html
75 lines (68 loc) · 2.91 KB
/
checknobindingredirectstask.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
layout: documentation
title: CheckNoBindingRedirectsTask
teaser: Checks that no binding redirects are present in app/web configuration file.
navigation:
- name: MSBuild Tasks
link: msbuildtasks.html
- name: Overview
link: checknobindingredirectstask.html
---
<h1>Check No Binding Redirects Task</h1>
<a href="https://www.nuget.org/packages/Appccelerate.CheckNoBindingRedirectsTask/">
<img src="http://img.shields.io/nuget/v/Appccelerate.CheckNoBindingRedirectsTask.svg" title="latest version" />
<img src="http://img.shields.io/nuget/dt/Appccelerate.CheckNoBindingRedirectsTask.svg" title="number of downloads" />
</a>
<a href="https://www.myget.org/gallery/appccelerate">
<img src="https://img.shields.io/myget/appccelerate/v/Appccelerate.CheckNoBindingRedirectsTask.svg" title="latest alpha version" />
</a>
<a href="https://github.com/appccelerate/checknobindingredirectstask/issues">
<img src="https://img.shields.io/github/issues/appccelerate/CheckNoBindingRedirectsTask.svg" title="open issues" />
</a>
<h2>Motivation</h2>
<p>
Nuget adds binding redirects for updated assemblies to a project under certain conditions.
</p>
<p>
If you want to make sure that your project doesn't use binding redirects - with the risk of incompatible assemblies -
the Appccelerate.CheckNoBindingRedirectsTask checks that no binding redirects are present in the app or web config file.
</p>
<h2>Features</h2>
<p>
<ul class="check dotted">
<li>checks web or app config files for binding redirects</li>
<li>integrated in build process</li>
<li>supports regular expressions for defining exclusions</li>
</ul>
</p>
<h2>Installation</h2>
<p>
You can install the CheckNoBindingRedirectsTask using nuget. The package id is <code>Appccelerate.CheckNoBindingRedirectsTask</code>.
</p>
<h2>Configuration</h2>
<p>
You can overwrite the default behaviour of the CheckHintPathTask by setting properties in the project file.
</p>
<h3>Exclude Patterns</h3>
<p>
You can add the property <code>CheckNoBindingRedirectsTaskExcludePatterns</code> to your project file to define exlusion patterns.
Binding redirects for assemblies matching one of the exclude patterns will not result in a violation.
</p>
<p>
The list is a comma separated list of regular expressions.
</p>
<p>
E.g. <code><CheckNoBindingRedirectsTaskExcludePatterns>System.Web.*</CheckNoBindingRedirectsTaskExcludePatterns>
</code>
</p>
<h3>TreatWarningsAsErrors</h3>
<p>
The property <code>TreatWarningsAsErrors</code> defines whether hint path violations result in warnings or errors.
</p>
<p>
The default value is <code>false</code>.
<p>
<p>
You can overwrite the behaviour by adding the <code>TreatWarningsAsErrors</code> property to your project file:
E.g. <code><TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors></code>
This will result in errors for invalid hint paths during a releae build.