Cannot open include file error when using cpprestsdk in VS2015 with NuGet

Oct 26, 2015 at 11:37 PM
I created a new project using VS2015 Pro using Universal Windows application template. After I added cpprestsdk using NuGet Management UI for the project, I found that I could not compile the project. The VC++2015 complained that <cpprest/json.h> could not be found!
The same happened to another project which was created using VC2013. The project compiled fine until I migrated it to UWP.
I've also tried creating Windows 8.1 project using VC2015 with cpprestsdk, but got the same compilation error.
I thought NuGet manage the include path automatically, right?
Did I miss anything?
Oct 28, 2015 at 11:12 PM
I tried the scenarios you mentioned above, they seem to be working for me (I got VS 2015 Enterprise).
  1. Did the nuget package install succeed? Could you check the Package Manager Output window and see if any errors were reported.
  2. Did you install the cpprestsdk nuget package or any specific ones?
Oct 28, 2015 at 11:29 PM
Thanks kavyako for your confirmation. I forgot to mention that I did this in Windows 10 Pro. The toolset automatically changed to vc140 when under Windows 10.