Hi Roschuma!
I appreciate you taking time in helping me with this! I've tried the proposed solution above with no success.
I've also reproduced this behaviour by creating a simple blank solution for Windows Phone, and then installing the nuget package for cpprestsdk.
After that I add #include "cpprest/http_client.h" in one of the source files and then in a method I try to instansiate web::http::http_request request(web::http::methods::GET);
This works perfectly when being run.
I then remove the nuget package (but first I make a copy of the packages/cpprest.2.2.0 directory) by using "uninstall-package
I then manually add the appropriate lib file from the recently copied directory, and also add the dll from the runtime directory. I also make sure to add the additional include for the include directory. Once again, everything compiles and runs, but when hitting the line where I create the instance of the http_request it now breaks (and crashes if I don't catch exceptions).
So I guess there's some preprocessor directive that isn't properly set, but I can't figure out which. I've looked at the .targets file but wasn't succesful in figuring out...
Once again, thanks!
Johan
I appreciate you taking time in helping me with this! I've tried the proposed solution above with no success.
I've also reproduced this behaviour by creating a simple blank solution for Windows Phone, and then installing the nuget package for cpprestsdk.
After that I add #include "cpprest/http_client.h" in one of the source files and then in a method I try to instansiate web::http::http_request request(web::http::methods::GET);
This works perfectly when being run.
I then remove the nuget package (but first I make a copy of the packages/cpprest.2.2.0 directory) by using "uninstall-package
I then manually add the appropriate lib file from the recently copied directory, and also add the dll from the runtime directory. I also make sure to add the additional include for the include directory. Once again, everything compiles and runs, but when hitting the line where I create the instance of the http_request it now breaks (and crashes if I don't catch exceptions).
So I guess there's some preprocessor directive that isn't properly set, but I can't figure out which. I've looked at the .targets file but wasn't succesful in figuring out...
Once again, thanks!
Johan