Porting a .Net Framework Library to .Net Core