Which folder place file like sqlite

in net framework we should place App_Data otherwise IIS detects there’s a change in the file system and restarts the appdomain,

To simplify migration efforts of ServiceStack projects between .NET Core and .NET Framework, all SPA and Website Templates are configured to use .NET Core’s convention of /wwwroot for its public WebRoot Path

so just want to know where should we place in netfx/core/corefx/selfhost project

You should probably continue to use ~/App_Data as a matter of convention although the Data Directory concept doesn’t exist outside of classic ASP.NET Web Apps. In .NET Core placing it anywhere outside /wwwroot shouldn’t trigger App restarts.