Turning on warnings as errors for routing
This commit is contained in:
parent
4a51ced5de
commit
1d4ceef81b
|
|
@ -28,8 +28,8 @@
|
||||||
<Compile Include="DelegateRouteEndpoint.cs" />
|
<Compile Include="DelegateRouteEndpoint.cs" />
|
||||||
<Compile Include="DictionaryExtensions.cs" />
|
<Compile Include="DictionaryExtensions.cs" />
|
||||||
<Compile Include="PrefixRoute.cs" />
|
<Compile Include="PrefixRoute.cs" />
|
||||||
<Compile Include="RouteCollectionBuilderExtensions.cs" />
|
<Compile Include="RouteBuilderExtensions.cs" />
|
||||||
<Compile Include="Startup.cs" />
|
<Compile Include="Startup.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VSToolsPath)\AspNet\Microsoft.Web.AspNet.targets" Condition="'$(VSToolsPath)' != ''" />
|
<Import Project="$(VSToolsPath)\AspNet\Microsoft.Web.AspNet.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
"version": "0.1-alpha-*",
|
"version": "0.1-alpha-*",
|
||||||
|
"compilationOptions": {
|
||||||
|
"warningsAsErrors": true
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNet.Http": "0.1-alpha-*",
|
"Microsoft.AspNet.Http": "0.1-alpha-*",
|
||||||
"Microsoft.Framework.DependencyInjection" : "0.1-alpha-*"
|
"Microsoft.Framework.DependencyInjection" : "0.1-alpha-*"
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ namespace Microsoft.AspNet.Routing.Tests
|
||||||
|
|
||||||
target
|
target
|
||||||
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
||||||
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
|
.Callback<RouteContext>((c) => c.IsHandled = accept)
|
||||||
.Returns(Task.FromResult<object>(null))
|
.Returns(Task.FromResult<object>(null))
|
||||||
.Verifiable();
|
.Verifiable();
|
||||||
|
|
||||||
|
|
@ -236,7 +236,7 @@ namespace Microsoft.AspNet.Routing.Tests
|
||||||
|
|
||||||
target
|
target
|
||||||
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
||||||
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
|
.Callback<RouteContext>((c) => c.IsHandled = accept)
|
||||||
.Returns(Task.FromResult<object>(null))
|
.Returns(Task.FromResult<object>(null))
|
||||||
.Verifiable();
|
.Verifiable();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -555,7 +555,7 @@ namespace Microsoft.AspNet.Routing.Template.Tests
|
||||||
|
|
||||||
target
|
target
|
||||||
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
.Setup(e => e.RouteAsync(It.IsAny<RouteContext>()))
|
||||||
.Callback<RouteContext>(async (c) => c.IsHandled = accept)
|
.Callback<RouteContext>((c) => c.IsHandled = accept)
|
||||||
.Returns(Task.FromResult<object>(null));
|
.Returns(Task.FromResult<object>(null));
|
||||||
|
|
||||||
return target.Object;
|
return target.Object;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
{
|
{
|
||||||
"version": "0.1-alpha-*",
|
"version": "0.1-alpha-*",
|
||||||
|
"compilationOptions": {
|
||||||
|
"warningsAsErrors": true
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.AspNet.Http" : "0.1-alpha-*",
|
"Microsoft.AspNet.Http" : "0.1-alpha-*",
|
||||||
"Microsoft.AspNet.Routing" : "",
|
"Microsoft.AspNet.Routing" : "",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue