How to separate model, view and controller in an ASP.NET MVC app into different assemblies

前端 未结 5 1223
一整个雨季
一整个雨季 2020-12-28 09:25

At the moment I am trying to get into the ASP.NET MVC framework.
For most of my test applications I used a single assembly/project. This worked fine for some smaller app

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-28 09:38

    Only completing @David's answer:

    If your project is managed by NuGet, after creating the class libraries, perform a copy of your packages.config file to the class libraries root. Afterwards, you should edit each packages.config file adding or removing packages, according to the needs of each class library.

提交回复
热议问题