Last post Oct 10, 2018 02:16 PM by bruce (sqlwork.com)
Oct 10, 2018 09:55 AM|wakes|LINK
I have build some WCF services project in one of our application which are actually hosted on internal company network for buinsess used.
This project has a Core library name WCFTypesCore whcih is build on top of .Net framework 4.6
The question I have is that If I build a new set of services using .NET Core, can this WCFTypesCore lib can be used in .Net core project ?
Oct 10, 2018 10:23 AM|kashyapa|LINK
for this exact reason - Microsoft came up with what is called as ".NET Standard". Please read upon this here: https://docs.microsoft.com/en-us/dotnet/standard/net-standard
Now, if you want your library to be used in .NET 4.6 and .NET Core - then you will need to convert the libary to .NET Standard library. Here is an article from community outlining how to convert .net framework project to .net standard -
Which version of .net standard to target depends on the usage. For example - if you want you library to be used in .net framework 4.6.1 and .net core 2.0 - then you should target .net standard 2.0. The documentation link i have you has a .net standard version
table which provides you this information.
Hope this helps.
Oct 10, 2018 02:16 PM|bruce (sqlwork.com)|LINK