-
I have a lot of controller code that can be shared across multiple projects, so I moved them to a public library project. I need them to be used not only in the web project, but can also be used in other projects(e.g winforms), So I just want them to depend on Microsoft.NETCore.App, but there is a problem, there is a controller that uses IFormFile, which is in the package Microsoft.AspNETCore.App, Now my public library project must depend on two packages Microsoft.NETCore.App and Microsoft.AspNETCore.App, which is not good, so I hope you can move IFormFile from package Microsoft.AspNETCore.App to package Microsoft.NETCore.App Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Your public library can depend on just Microsoft.AspNETCore.App. This type is in the Microsoft.AspNetCore namespace and won’t be going into the NETCore.App shared framework. |
Beta Was this translation helpful? Give feedback.
Your public library can depend on just Microsoft.AspNETCore.App. This type is in the Microsoft.AspNetCore namespace and won’t be going into the NETCore.App shared framework.