DocuSign SDK Assembly Dependency Versions - c#

I am integrating the DocuSign SDK into my application (from the github page here: https://github.com/docusign/docusign-csharp-client) and can see it has two dependencies:
- Netwtonsoft.JSON
- RestSharp
However, it seems the included dependency assemblies are not the same versions that were used to create the DocuSign SDK assembly.
The included NewtonSoft.JSON assembly is v8, but the SDK uses v7.
The included RestSharp assembly is 105.2.3, but the SDK uses v105.1.0.0
Is it possible to get an updated SDK with the correct dependencies?

Dependencies For the DocuSign Nuget package 2.1.4
Newtonsoft.Json (>= 8.0.3)
RestSharpSigned (>= 105.2.2)
Source code is also referring to the same versions. See here

Thank you for the links, it appears the SDK I downloaded from GitHub was perhaps an older version.
Installing the NuGet package worked a charm.

Related

How do I Install OpenIDConnect Nuget Package with Dependency on "DNX 4.5.1"

Trying to install the OpenIDConnect Nuget package to my project, which was targeting .NET Framework 4.5. That failed, with the error:
Could not install package
'Microsoft.AspNet.Authentication.OpenIdConnect 1.0.0-rc1-final'. You
are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author.
So I look at the dependencies for the package, and see that "DNX 4.5.1" is listed:
Dependencies
DNX 4.5.1
Microsoft.AspNet.Authentication (>= 1.0.0-rc1-final)
Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 2.0.0-rc1-211161024)
DNXCore 5.0
Microsoft.AspNet.Authentication (>= 1.0.0-rc1-final)
Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 2.0.0-rc1-211161024)
System.Net.Http (>= 4.0.1-beta-23516)
... so I assumed that DNX is a useless abbreviation of ".NET" - who knows, maybe the field doesn't accept a '.' in the field, so they had to come up with something else. No worries, I'll just upgrade my project to .NET Framework 4.5.1 and try again.
... but that didn't work. I get the same error, but the error has the 4.5.1 version number.
I looked at the "install other frameworks" page and I don't see any "DNX" frameworks listed there.
What am I doing wrong?
What's with the "DNX" business?
How do I Install OpenIDConnect Nuget Package with Dependency on “DNX 4.5.1”
Just like Will said, this nuget package came out during the birth of .NET Core and you can also find this this nuget package is a just a pre-release version, microsoft has not officially released it. It has not been updated since 11/18/2015. Obviously,The NuGet team deprecated this package.
To resolve this issue, you can use the package Microsoft.AspNetCore.Authentication.OpenIdConnect instead of it.
Get it from: https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.OpenIdConnect/2.1.0-preview1-final
Hope this helps.

How can you programmatically create a NuGet package in .NET Standard with NuGet V3?

I have written an application which takes a Swagger definition as an input and outputs a .NET Standard proxy as a DLL.
We have an older application that uses NuGet.Core to package up a DLL into a NuGet package and then publish it. This code is not compatible with .NET Standard 2.0 because of a dependency on Microsoft.Web.Xdt.
I've had a look through the documentation for the NuGet V3 package but I can't find any examples of how to generate packages programmatically.

Cannot update Microsoft.Extensions.Logging to (2.0) Mono Develop 6.1.4

My packages in my project indicated there was a version update to 2.0 for:
Microsoft.Extensions.Logging
NETStandard.Library
Microsoft.NETCore.Platforms
The only one I cannot get to update is Microsoft.Extensions.Logging
The Error I get is this:
Package 'Microsoft.Extensions.Logging 2.0.0' does not exist in folder '/home/MyUser/UpdatedPon/pon/sbmanager/packages'
Could not install package 'Microsoft.Extensions.Logging 2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I have been searching the internet the past few days looking for a solution, but I have not found one as of yet.
Has any one ran into this issue, I am running MonoDevelop 6.1.4
and my MONO version is 5.2.0.215.
Lastly this is a WebForms application.
The Microsoft.Extensions.Logging 2.0.0 NuGet packages has assemblies for .NET Standard 2.0.
A more recent version of NuGet is required for .NET Standard 2.0 to be recognised as a target framework. So you would need to use MonoDevelop 7.1 for this to work. Also your project would need to target .NET 4.6.1 to be able to install the NuGet package.
Alternatively you could try installing the older version Microsoft.Extensions.Logging 1.1.2 which contains .NET Standard 1.1 assemblies which should be recognised by MonoDevelop 6.1.

System.Web.Http reference version reducing from v5.2.3.0 to v5.1.0.0 after installing fluentvalidation.webapi

I want to install fluentvalidation.webapi package in my webApi project. When i install this package through nuget, i notice a strange thing that it reduces the version of my system.web.http reference.
System.Web.Http reference version before fluentvalidation.webapi package installation: version 5.2.3.0
System.Web.Http reference version after fluentvalidation.webapi package installation: version 5.1.0.0
Can anyone tell me reason for this? this further gives me other issues like Getting Microsoft.AspNet.WebApi.Cors version issue in WebAPI
Try upgrading System.Web.Http to latest version after installing fluentvalidation.webapi. If the dependant library uses specific version of System.Web.Http library, you can specify binding redirect in your web.config, which would basically instruct the app to use most recent version of the library. For documentation on setting binding redirects, please, see https://msdn.microsoft.com/en-us/library/twy1dw1e(v=vs.110).aspx

Add ServiceStack.Interfaces with Nuget version 3.9.7.0

I used Nuget to install ServiceStack.Text,ServiceStack.Client and ServiceStack.Common in version 3.9.7.0.
When trying to install ServiceStack.Interfaces version 3.9.7.0 it couldn`t find it.
If i still need the specific version of 3.9.7.0 what should i do?
I prefer to manage all my packages threw nuget..but if won`t have a choise i will use different solution.
In ServiceStack v3 the ServiceStack.Interfaces.dll was maintained in the ServiceStack.Common NuGet package, so to install a specific version of ServiceStack.Interfaces from NuGet you can specify the version you want:
Install-Package ServiceStack.Common -Version 3.9.70
See the v3 installation docs for other NuGet instructions.
The ServiceStack.Interfaces library for ServiceStack v3 was reset to 1.0.0.0 when v4 was released, in this commit.
You can see the version information for the library here:
https://github.com/ServiceStack/ServiceStack/blob/v3/src/ServiceStack.Interfaces/Properties/AssemblyInfo.cs

Categories