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

Oct 27, 2015 at 12:37 AM
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 29, 2015 at 12:12 AM
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 29, 2015 at 12:29 AM
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.