简体   繁体   中英

VS 2013 Config File Missing in Azure Cloud Service

I have created an Azure Cloud Service (call it A ) in Visual Studio 2013, using Azure SDK v2.6. The cloud service has a single role from project B , project B references project C , and project C references project D . Project D includes a content file called D.dll.config . I have verified that when I build, the file D.dll.config exists in D\\bin\\Debug\\ , C\\bin\\Debug\\ , and B\\bin\\Debug\\ . However, when I run A in both the emulator and on Azure, my config file is absent.

On my local machine, this directory is A\\csx\\Debug\\roles\\B\\approot\\ . Does anyone know how to get the configuration file to be included with my cloud service? A brief explanation as to why it is not being included to begin with would also be appreciated.

My coworker stumbled across a solution while he was creating a new cloud service. If I add a reference from project B (the one that contains the cloud service role) to project D (the one that contains the config file as content), then D.dll.config is included in the approot directory in my emulator, as well as in Azure.

This solution is still not ideal, as I have to add an explicit reference to all dll's with content. However, it is the best solution that I know of thus far.

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