Turning on warnings as errors for routing

This commit is contained in:
Ryan Nowak 2014-06-04 18:42:41 -07:00
parent 4a51ced5de
commit 1d4ceef81b
5 changed files with 11 additions and 5 deletions

View File

@ -28,8 +28,8 @@
<Compile Include="DelegateRouteEndpoint.cs" />
<Compile Include="DictionaryExtensions.cs" />
<Compile Include="PrefixRoute.cs" />
<Compile Include="RouteCollectionBuilderExtensions.cs" />
<Compile Include="RouteBuilderExtensions.cs" />
<Compile Include="Startup.cs" />
</ItemGroup>
<Import Project="$(VSToolsPath)\AspNet\Microsoft.Web.AspNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
</Project>

View File

@ -1,5 +1,8 @@
{
"version": "0.1-alpha-*",
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Http": "0.1-alpha-*",
"Microsoft.Framework.DependencyInjection" : "0.1-alpha-*"

View File

@ -202,7 +202,7 @@ namespace Microsoft.AspNet.Routing.Tests
target
.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))
.Verifiable();
@ -236,7 +236,7 @@ namespace Microsoft.AspNet.Routing.Tests
target
.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))
.Verifiable();

View File

@ -555,7 +555,7 @@ namespace Microsoft.AspNet.Routing.Template.Tests
target
.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));
return target.Object;

View File

@ -1,5 +1,8 @@
{
"version": "0.1-alpha-*",
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Http" : "0.1-alpha-*",
"Microsoft.AspNet.Routing" : "",