Saturday, March 2, 2019

Porting .NET Framework code to .NET Core

Hey, so I'll preface this with the fact that C# is not my language of choice.

I was given the task of porting two .NET Framework libraries for .NET Core. Neither really need a lot of changes to their source, it's more of a dependency problem, so I decided to manually hack the .csproj-files into the new format. Everything went fine, no problems with that.

Both libraries required an old version of Entity Framework, though. This means they use imports such as "System.Data.EntityClient" and "System.Data.Objects.DataClasses" and classes "ObjectContext" and "ObjectSet<>". I couldn't find any .NET Core alternatives for these for the life of me.

There's also an automatically generated EF Entity that I cannot find the source for. I believe it might be generated from a string inside App.config, but not sure how that works or if .NET Core systems even have support for that.

Anything I can try? I'll appreciate any info I can get.

Porting .NET Framework code to .NET Core Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team