简体   繁体   中英

Onion Architecture DI layer and MSDeploy

I've created some bastardized Onion Architectures which I need to fix. Specifically, my dependency resolution stuff is referenced in my UI layer (MVC). I need to pull those out into their own WebActivator assembly as I see recommended everywhere, but I am hitting one big wall and can't find an explanation on how to get around it.

Our build process actually builds a web package to deploy to the server via xcopy for all intents and purposes. This runs the web.config transforms, only includes project files, etc., so we can be sure of what is going over.

But when the MVC site doesn't HAVE a reference to the DI project, how do I make it copy over during this process? Ideally, I'd like to avoid having to add a section to my PSake build script to just copy this DLL over after building the projects, but I'm unsure what my best bet is here.

我通常在数据项目上添加一个类似以下内容的构建后事件

xcopy /y "$(TargetDir)*.*" "$(SolutionDir)YourProject.Website\bin\"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM