Skip to content

Commit

Permalink
Merge pull request #825 from Azure/jasmineymlo-patch-1
Browse files Browse the repository at this point in the history
Add instructions for running CppUWPSample
  • Loading branch information
tameraw authored Sep 16, 2016
2 parents 3d786d8 + af7b5d3 commit aa7a647
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions csharp/device/doc/devbox_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ For building Android sample open **csharp\device\samples\DeviceClientSampleAndro

To check for any latest Xamarin update for Visual Studio check Tools->Options->Xamarin->Other.

## Running CppUWPSample (Universal Windows) sample application

Visual Studio is having an issue with getting all the depedencies (dll) of the Microsoft.Azure.Devices.Client.WinRT which is referenced in the project to the proper location. This leads to an exception thrown about not loading file or assembly during run-time. You will have to manually copy the dlls in the appropriate location in order to run the sample application successfully. Follow the below steps if needed:
* Build the UWPSample (Universal Windows) project
* Note the location of the bin folder, i.e. ...\azure-iot-sdks\csharp\device\samples\UWPSample\bin\x86\Debug\
* Build the CppUWPSample (Universal Windows) project
* Note the location of the Appx folder, i.e. ...\azure-iot-sdks\csharp\device\Debug\CppUWPSample\Appx
* Copy all dll files from the UWPSample bin folder to the CppUWPSample Appx folder. When prompt about duplicated file names, choose "Skip these files"

Now you are ready to run the CppUWPSample.



[visual-studio]: https://www.visualstudio.com/
[readme]: ../readme.md
[lnk-sdk-vs2015]: http://go.microsoft.com/fwlink/?LinkId=518003
Expand Down

0 comments on commit aa7a647

Please sign in to comment.