-
Notifications
You must be signed in to change notification settings - Fork 1
Migrating this library to .Net Standard 2.0 #3
Comments
We've also had a request to deliver this using .NET core. (issue #2) I do not know much about .NET, would this also be a compatible choice? We initially built this library to integrate with Unity. This is the primary reason it targets such an old version. Thanks for the feedback! |
.Net Standard is Microsoft answer for compatibility across Universal Windows applications i.e .Net Framework, .Net Core, Mobile Frameworks etc. So if you migrate your library to latest .Net Standard 2.0 then it works for every framework in Microsoft. While migrating it i don't think there is need for much code change except for |
Thanks for that explanation! Perhaps it won't be much work to get it migrated. Thanks!! |
Hi @prabhakarreddy1234 we have a .NET Core library now. We don't have it in NuGet yet, but take a look and see if it will work for you. |
Hi @robotdan we have just upgraded to version 1.9.1 (I believe you helped me with a few issues on StackOverflow thankyou) I noticed the latest client has dependencies on .NETCoreApp however after having a very brief look through the source I can't see why this is needed unless I am missing something. I believe removing these dependencies and converting the library to .NETStandard would make the library a lot more flexible in terms of compatibility. |
Actually I may be getting confused here. So I cloned fusionauth-csharp-client and noticed this project still references .NET Framework AND has the latest API changes, which is great! |
Thanks for the feedback @tombeany ! .NET is not my strong suit!
Cool, I'll take a look or pass along to my team. The goal is to make the .NET core client the most compatible, so I am up for tweaks and adjustments to make it better for sure. The
I think so? We are using the same NuGet package but I am publishing it from the To summarize, are there things we could do to make the |
My opinion is to target the lowest possible version of .NET Standard. Use this chart to see that .NET Standard v1 provides support to ALL of the .NET Core versions, and a few of the (eventually legacy) Framework versions as well. https://dotnet.microsoft.com/platform/dotnet-standard#versions Depending on the APIs that you need from .NET I think .NET Standard 2.0 would be a realistic target version, if earlier versions cannot meet the needs of this client app. |
Yes I would agree that targeting the lowest possible .NET standard version
would be a good approach. As far as I can tell the only real dependencies
this library would need (at the moment) are on System.Net.HttpClient for
making the API calls and Newtonsoft.Json for serialization and
deserialization. I have done a brief check and the System.Net.HttpClient is
available in .NET Standard version 1.1
I think the migration from NET Core App to .NET Standard library would be a
straight forward process as much as removing dependencies on .NETCoreApp
and changing the library type to .NET Standard and ensuring the target
framework for each project points to the chosen .NET Standard version
P.S. Sorry I haven't replied sooner I was on annual leave Friday and over
the weekend
…On Mon, 30 Sep 2019 at 17:22, JGunter7 ***@***.***> wrote:
My opinion is to target the lowest possible version of .NET Standard. Use
this chart to see that .NET Standard v1 provides support to ALL of the .NET
Core versions, and a few of the (eventually legacy) Framework versions as
well.
https://dotnet.microsoft.com/platform/dotnet-standard#versions
Depending on the APIs that you need from .NET I think .NET Standard 2.0
would be a realistic target version, if earlier versions cannot meet the
needs of this client app.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=ADNOVEBPHTP5C5NV2DAJUC3QMIRTFA5CNFSM4HEBRUD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76HMFQ#issuecomment-536638998>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADNOVECGJUQO7Z2LRXGGMZ3QMIRTFANCNFSM4HEBRUDQ>
.
--
This electronic transmission is strictly confidential and intended solely
for the addressee. It may contain information covered by legal,
professional or other privilege. If you are not the intended addressee, you
must not disclose, copy or take any action in consequence of this
transmission. If you have received this transmission in error, please
notify the sender as soon as possible.
|
So, I'm trying to wade through all of the comments to see if I understand. :-) If we were to use .NET Standard 2.0 or 1.1 ? this would be compatible with Windows and cross platform developers using .NET? Ideally we'd deprecate the C# library and have "one library to rule them all" :-) . Is this possible, or will need to maintain both a "c#' and a .Net Core / Standard library to cover all of the bases? |
I found that I could add The We could build a `.nuget package that a .dll for each of the following target frameworks:
Any feedback for us non -.NET smart folks? :-) |
.NET Standard would just suffice, since it can be used in .NET Core and .NET 4.5 and up. |
Thanks @rdvanbuuren appreciate the feedback. We've been building a .Net core library as well that we've assumed will be able to take the place of this one. https://github.com/FusionAuth/fusionauth-netcore-client In the fusionauth-netcore-client we're targetting .Net core 2.1 and 2.2 ( https://github.com/FusionAuth/fusionauth-netcore-client/blob/master/fusionauth-netcore-client/fusionauth-netcore-client.csproj )
Any reason you'd use this library instead of the |
Since this library is built on a decade old .Net Framework 2.0, It's not compatible with latest applications such as apps built on .Net Core, Serverless etc.
I suggest migrating this library to .Net Standard 2.0 so that it will be compatible with both legacy and latest frameworks.
The text was updated successfully, but these errors were encountered: