What happens when there are references to other projects in a solution, and each project is deployed to different servers?

StackOverflow https://stackoverflow.com/questions/19106269

質問

For example:

I have a LogModel for writing logs to the database in each of five projects under one solution. They're all the same, so if I edit I have to edit each manually.

Now I know I can reference it like "OtherProject.Models.LogModel", but when I deploy each application to different servers where they don't know about one another, will the LogModel be bundled in each one, or will it just error now that it doesn't know how to complete that reference?

Thanks for any guidance! I'm using MVC 4 btw.

役に立ちましたか?

解決

The shared project's resulting dll needs to be deployed with each server. When you compile in VS it will copy the dll from the shared'd projects bin directory to each dependent project's bin directory automatically.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top