migrate legacy application to .net5