Skip to content

Commit

Permalink
Use supported MVC dependency (#4734)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy authored Nov 19, 2023
1 parent 0daa893 commit f34d120
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions eng/packages/TestOnly.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageVersion Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="2.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc" Version="2.1.3" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="2.1.3" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Microsoft.AspNetCore.TestHost;
#else
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Internal;
#endif
using System.Collections.Generic;
using Microsoft.Extensions.Configuration;
Expand Down Expand Up @@ -129,7 +128,6 @@ private static IWebHost CreateWebHost(Action<IServiceCollection> configureServic
return new WebHostBuilder()
.ConfigureServices(configureServices)
.Configure(app => app
.UseEndpointRouting()
.UseRouter(routes => { })
.UseMvc())
.Build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#else
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Internal;
#endif
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -187,7 +186,6 @@ private static IWebHost CreateWebHost(Action<IServiceCollection> configureServic
return new WebHostBuilder()
.ConfigureServices(configureServices)
.Configure(app => app
.UseEndpointRouting()
.UseRouter(routes => { })
.UseMvc())
.Build();
Expand Down

0 comments on commit f34d120

Please sign in to comment.