Skip to content

Remove Microsoft.AspNetCore.Mvc.Core dependency from Microsoft.AspNetCore.Mvc.Testing #6399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
slang25 opened this issue Jan 4, 2019 · 7 comments
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates ✔️ Resolution: Duplicate Resolved as a duplicate of another issue question

Comments

@slang25
Copy link
Contributor

slang25 commented Jan 4, 2019

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.

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jan 4, 2019
@mkArtakMSFT
Copy link
Member

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

@pranavkm
Copy link
Contributor

pranavkm commented Jan 7, 2019

@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.

@javiercn
Copy link
Member

javiercn commented Jan 7, 2019

That's what I would expect.

@javiercn
Copy link
Member

javiercn commented Jan 7, 2019

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.

@natemcmaster
Copy link
Contributor

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

Correct. See #4257

@pranavkm
Copy link
Contributor

pranavkm commented Jan 7, 2019

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.

@pranavkm pranavkm closed this as completed Jan 7, 2019
@pranavkm pranavkm added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Jan 7, 2019
@slang25
Copy link
Contributor Author

slang25 commented Jan 7, 2019

Thanks all for the information, that makes sense 👍

@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates ✔️ Resolution: Duplicate Resolved as a duplicate of another issue question
Projects
None yet
Development

No branches or pull requests

6 participants