Skip to content

Commit 27a0951

Browse files
authored
Update dependencies and re-mark obsolete constructor (#783)
1 parent d364a9e commit 27a0951

File tree

4 files changed

+1
-18
lines changed

4 files changed

+1
-18
lines changed

benchmarkapps/Benchmarks/Benchmarks.csproj

-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>netcoreapp2.2</TargetFramework>
55
<TargetFramework Condition="'$(BenchmarksTargetFramework)' != ''">$(BenchmarksTargetFramework)</TargetFramework>
66
<UseP2PReferences Condition="'$(UseP2PReferences)'=='' AND '$(BenchmarksTargetFramework)'==''">true</UseP2PReferences>
7-
<NoWarn>NU1605</NoWarn>
87
</PropertyGroup>
98

109
<!--These references are used when running locally-->
@@ -13,16 +12,10 @@
1312
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(MicrosoftAspNetCoreServerKestrelPackageVersion)" />
1413
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="$(MicrosoftExtensionsConfigurationCommandLinePackageVersion)" />
1514
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="$(MicrosoftExtensionsConfigurationEnvironmentVariablesPackageVersion)" />
16-
<PackageReference Include="Microsoft.AspNetCore.Http" Version="$(MicrosoftAspNetCoreHttpPackageVersion)" />
17-
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
18-
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
1915
</ItemGroup>
2016

2117
<!--These references are used when running on the Benchmarks Server-->
2218
<ItemGroup Condition="'$(UseP2PReferences)'!='true'">
23-
<PackageReference Include="Microsoft.AspNetCore.Http" Version="$(MicrosoftAspNetCoreHttpPackageVersion)" />
24-
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
25-
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
2619
<PackageReference Include="Microsoft.AspNetCore.App" Version="$(MicrosoftAspNetCoreAppPackageVersion)" />
2720
</ItemGroup>
2821

samples/RoutingSample.Web/RoutingSample.Web.csproj

-5
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33
<PropertyGroup>
44
<TargetFrameworks>netcoreapp2.2</TargetFrameworks>
55
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net461</TargetFrameworks>
6-
<NoWarn>NU1605</NoWarn>
76
</PropertyGroup>
87

98
<ItemGroup>
109
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Routing\Microsoft.AspNetCore.Routing.csproj" />
1110
</ItemGroup>
1211

1312
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore.Http" Version="$(MicrosoftAspNetCoreHttpPackageVersion)" />
15-
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
16-
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
17-
1813
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="$(MicrosoftAspNetCoreServerIISIntegrationPackageVersion)" />
1914
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(MicrosoftAspNetCoreServerKestrelPackageVersion)" />
2015
</ItemGroup>

src/Microsoft.AspNetCore.Routing/DefaultInlineConstraintResolver.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ public class DefaultInlineConstraintResolver : IInlineConstraintResolver
2424
/// <param name="routeOptions">
2525
/// Accessor for <see cref="RouteOptions"/> containing the constraints of interest.
2626
/// </param>
27-
// TODO: Temporarily remove obsolete attribute to unblock build
28-
//[Obsolete("This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.")]
27+
[Obsolete("This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.")]
2928
public DefaultInlineConstraintResolver(IOptions<RouteOptions> routeOptions)
3029
{
3130
_inlineConstraintMap = routeOptions.Value.ConstraintMap;

test/Microsoft.AspNetCore.Routing.FunctionalTests/Microsoft.AspNetCore.Routing.FunctionalTests.csproj

-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
5-
<NoWarn>NU1605</NoWarn>
65
</PropertyGroup>
76

87
<ItemGroup>
@@ -15,9 +14,6 @@
1514
</ItemGroup>
1615

1716
<ItemGroup>
18-
<PackageReference Include="Microsoft.AspNetCore.Http" Version="$(MicrosoftAspNetCoreHttpPackageVersion)" />
19-
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
20-
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
2117
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="$(MicrosoftAspNetCoreTestHostPackageVersion)" />
2218
</ItemGroup>
2319

0 commit comments

Comments
 (0)