also moved those parts around profile pubxml and csproj and of course nothing worked.
So question is simple - how to setup .net core 2.2 project to be able to create logs folder if it doesn't exists, leave existing files there (some previous log files), assing proper write rights for application pool user regardles if webapp will be deployed from VS or command line.
Hi,
simple webapi project with logs folder. Setting up csproj to generate empty logs folder was easy as described in https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/directory-structure?view=aspnetcore-2.2
but there is no sample how to set proper 'Write" rights to logs folder automatically.
So I tried using .wpp.targets by including them into csproj
and having in wpp.targets
then having another snippet found
then I put
also moved those parts around profile pubxml and csproj and of course nothing worked. So question is simple - how to setup .net core 2.2 project to be able to create logs folder if it doesn't exists, leave existing files there (some previous log files), assing proper write rights for application pool user regardles if webapp will be deployed from VS or command line.