My solution looks like this:
- armdeploy.sln (has reference to ClassLibrary1 and ClassLibrary2)
- ClassLibrary1 (has reference to ClassLibrary2)
- ClassLibrary2
When i deploy in Release, ClassLibrary looks for ClassLibrary2 /bin/debug folder when i have chosen Release configuration and gets an error because nothing is there.
The only way I can fix this is when i edit the csproj file in ClassLibrary2 and change the configuration condition to be set to Release when empty.
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
It's similar to this problem: VS2015 Azure Resource Manager deploy dialog ignores solution and project build configuration for referenced projects
But that seem to be fixed, in this case it's a problem when you have nested references.