static link using nuget

Dec 23, 2014 at 1:57 PM

i've added the sdk via nuget to my project and I would like to link it statically. There are a lot of properties etc in the cpprestsdk.targets file but I can't configure it to use the lib instead of the dll.

Can anybody help me please?

Dec 23, 2014 at 8:22 PM
Hi Michael,

Our NuGet package doesn't contain binaries for static linking. We don't officially support static linking but others have been successful with some modifications building from source themselves. Take a look at the feature request for static linking here, it contains some comments and where to get started.