Skip to content

new user issue (Tutorial problems) #29

Closed
@harold50

Description

@harold50

Tutorial URL:
https://github.com/Microsoft/cpprestsdk/wiki/How-to-use-the-C---Rest-SDK-NuGet-package

I'm not sure where else to post this where a new cpprest user might see it. Until recently, I was avoiding upgrading my very very old Visual C++ 6.0 running on XP which still served my needs ... Github and NuGet and Azure are all new to me. I tried both 2013 and 2015 VS express for desktop with essentially similar problems and am posting my "solution" here for any who may be also failing to get the cpprestsdk tutorial to work.

The "problem" I suppose would have never been so frustrating if the default IDE settings for Visual Studio did not have such a short output window at the bottom of the screen. Essentially, the NuGet script output said that the cpprest package had been installed successfully and I moved on to the next tutorial step and faced a myriad of problems. I guess I should have scrolled up or expanded the output window to read all of the output, but when a script says success or "0 errors" at the end, I am predisposed to move on. At any rate, regardless of the script's success output, there was an error in the NuGet script output that had well scrolled out of the output window before the script claimed success. The error essentially said that running scripts was disabled on my computer (which was essentially a new VM so everything is default, including the Visual Studio installations).

At this point, Googling led to a solution (where Googling the various errors I was getting compile-time and link-time trying the tutorial was wasted time). All documentation I've read so far on various MS and MS-related sites says things like "The package also contains a dependency on C++ REST SDK, which will also be automatically installed by NuGet." ... nothing could I find anywhere explained that default installations essentially make NuGet inoperable, and of course it doesn't help when a script says success even though there were errors in the above wall of text preceding the final line.

Here is a link to what resolved the issue:
http://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts

Also of note, I had to exit and restart Visual Studio before the policy change took effect.

If there is any info even remotely similar to this in the cpprest documentation or the tutorial or elsewhere on this or a related site, I simply could not find it.

Hope this helps someone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions