Azure publish misses referenced assemblies by referenced projects

I'm trying to deploy my solution to Azure, but it doesn't work. It states that I'm missing dependencies. This is correct as I looked it up via the remote desktop. I miss the referenced assemblies of a referenced project of the Azure project, i.e.:

Azure project includes project A as a webrole. Project A has a reference to project B. Project B is linked to project A by Castle Windsor (weak coupling). Project B has a reference to an external project (NHibernate).

The assemblies of the external project are not being packaged and published. They are missing on the server although they are set to "Copy Local = true" on project B.

I can't imagine the only way is to add all the references of project A to project B to solve this, right? Could you provide me with a solution?

EDIT 13:51: It appears that the assembly NHibernate.ByteCode.Castle is the only assembly that is not being packaged. This assembly is being used by the strong coupled assembly NHibernate. The reference trail is now as follows:

Azure -> Project A --(weak coupling)-> Project B -> NHibernate

Azure -> Project A --(weak coupling)-> Project B -(weak coupling)--> NHibernate.ByteCode.Castle

Why is NHibernate.ByteCode.Castle nog being copied? I also got several other libraries which were added by the NHibernate package (such as Iesi.Collections) that are correctly packaged.

Any ideas?


There have been several incident when such problem occurred and the following discussion shows how to solve this problem:

Problem with Nhibernate.Bytecode.Castle in MSBuild (TFS)

Need Your Help

How could I use the same set of preference screens for all Android versions from 2.X to 4.X?

android compatibility android-preferences backwards-compatibility

NOTICE: Please save yourself some time and refer to the accepted answer, no need to read all the quesiton.

How to serialize inputs and select option to JSON in PHP

php json serialization

I need to serialize inputs and selected option with JSON datatype in the table below: