Sendgrid-csharp: Add support for .NET Standard 2.0

Created on 9 Oct 2017  路  5Comments  路  Source: sendgrid/sendgrid-csharp

We've recently moved our entire infrastructure to .NET Core 2.0 (and .NET Standard 2.0) and we were wondering when the sendgrid library will be targeting .NET Standard 2.0

medium hacktoberfest help wanted question

Most helpful comment

As a general rule, you should target the lowest possible version of the .NET Standard that has the features your library needs. That maximizes the number of places where it can run. Unless you are leveraging new features of .NET Standard 2.0, it's better to leave it targeting 1.3. A .NET Core 2.0 app can use a .NET Standard 1.3 library. See Which .NET Standard version to target, but here is the key advice:

In general, we recommend you to target the lowest version of .NET Standard possible.

All 5 comments

Great idea @matthijskoopman,

I've added this to our backlog and to our Hacktoberfest event.

With Best Regards,

Elmer

SendGrid already targets .NET Standard 1.3. You could use it in a .NET Core 2.0 project with no problems.

That's true @omaraloraini,

I do hope that we can also update our .NET Standard targeting to 2.0.

I could take care of this. Should I update the netstandard1.3 target or add the netstandard2.0 target?

I just submitted a pull request which adds the target. And I only just now saw the allready existing pull request. But I've added the netstandard 2.0 target instead of updating it.

As a general rule, you should target the lowest possible version of the .NET Standard that has the features your library needs. That maximizes the number of places where it can run. Unless you are leveraging new features of .NET Standard 2.0, it's better to leave it targeting 1.3. A .NET Core 2.0 app can use a .NET Standard 1.3 library. See Which .NET Standard version to target, but here is the key advice:

In general, we recommend you to target the lowest version of .NET Standard possible.

Was this page helpful?
0 / 5 - 0 ratings