# 使用vcpkg安装 azure-iot-sdk-c 的包
vcpkg install azure-iot-sdk-c
# 可选,如果您需要使用 sdk 共享或恢复一个盒子而不构建它,则很有用
# 将 nuget 包本地导出
vcpkg export azure-iot-sdk-c --nuget
# Open a C SDK sample (assuming repo was cloned as follows: git clone https://github.com/Azure/azure-iot-sdk-c.git azureiotsdk_sample)
# (Building the SDK and samples can be found here https://github.com/Azure/azure-iot-sdk-c/blob/master/doc/devbox_setup.md)
pushd azureiotsdk_sample\iothub_client\samples\iothub_ll_c2d_sample\windows
start iothub_ll_c2d_sample.sln
<hit F5 to build and run>