I building a website with Asp.Net 5 - beta7. This project uses several project dependencies which I have written. Locally I can build and run fine by using the "References -> Add Reference -> Solution Items" to add the project references. However, when I publish to Azure Websites I get 500 internal server errors.
Through troubleshooting, I have found that if I add the projects as nuget packages I can deploy fine. This however requires me to publish a nuget package to our company repo every time I want to make a change.
I have also gotten this to work by adding the project reference and moving the references from the "dependencies" node in project.json to the "frameworks:dnx451:dependencies" node of project.json. eg:
{ "dependencies" : {"project1" : "0.0.1-*"} }
becomes { "frameworks":{ "dnx451":{ "dependencies" : {"project1" : "0.0.1-*"}}}}
So, what is the difference between dependencies in the frameworks node and top level dependencies? I know that frameworkAssemblies is for the GAC, but what is the difference for two?
Which should I be using? And what is recommended?