microsoft / vs-azure-iot-edge-docs

Documentation for Azure IoT Edge Tools for Visual Studio
Creative Commons Attribution 4.0 International
5 stars 6 forks source link

docker build fails - when reference library/shared code in project/solution #13

Closed grahamehorner closed 4 years ago

grahamehorner commented 4 years ago

The Azure IoT Edge Module template fails to build in the module references any library or shared code file, this is due to the docker build not copying the source for the referenced project and/or shared code.

SLdragon commented 4 years ago

Hi, @grahamehorner , if you are build edge module project reference other libary/shared code, you should open module.json file in the Edge Module project, and change the context Path to "../" image

Then you should modify you Dockerfile and copy the related lib/project to the container.

Here is an related issue which you can refer: https://github.com/microsoft/vs-azure-iot-edge-docs/issues/10

SLdragon commented 4 years ago

You can also refer troubleshoot page:

https://github.com/Microsoft/vs-azure-iot-edge-docs/wiki/Troubleshoot#4-docker-build-fails---when-reference-libraryshared-code-in-projectsolution

SLdragon commented 4 years ago

If you have any other questions, feel free to contact us