Aspnetcore: Remove Microsoft.AspNetCore.Mvc.Core dependency from Microsoft.AspNetCore.Mvc.Testing

Created on 4 Jan 2019  路  7Comments  路  Source: dotnet/aspnetcore

Currently Microsoft.AspNetCore.Mvc.Testing doesn't use anything from the Microsoft.AspNetCore.Mvc namespace, so I was surprised to see that it brought in a dependency on Microsoft.AspNetCore.Mvc.Core.

It does however depend on Microsoft.Extensions.DependencyModel, so I propose it be updated to reflect that. It also seems unnecessary for this package to have Mvc in the name, however that ship has sailed.

Duplicate area-mvc question

All 7 comments

Thanks for contacting us, @slang25.
@javiercn, can you please have a look at this? Thanks!

@natemcmaster might have a better idea, but for 3.0, it's likely that the package would have a FrameworkReference to Microsoft.AspNetCore.App rather than package reference. This might not make much sense once it's retargeted.

That's what I would expect.

It also seems unnecessary for this package to have Mvc in the name, however that ship has sailed.

This package contains all the MVC specific tweaks that are needed for unit tests to work properly, that's why MVC was on the name at the time. Many of those restrictions have gone away.

it's likely that the package would have a FrameworkReference to Microsoft.AspNetCore.App rather than package reference.

Correct. See https://github.com/aspnet/AspNetCore/issues/4257

Thanks for the issue report @slang25. Since refactoring the references is already being tracked, closing this issue as there's nothing more to do here.

Thanks all for the information, that makes sense 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Trcx528 picture Trcx528  路  85Comments

moodya picture moodya  路  153Comments

barrytang picture barrytang  路  89Comments

zorthgo picture zorthgo  路  136Comments

natemcmaster picture natemcmaster  路  213Comments