I have made a Windows Service and every time we test on different machines, we have a .NET runtime error, because not all machines we have have that installed.
So we've published it as a Self-Contained.
Well, the problem is, that we have json configuration files that aren't going with the extraction.
When open, it creates some folder like this
But it doesn't take our config files and some useres have difficulties using it. And I also read thing saying that Windows deletes that folder, so it wouldn't be good after some months, files that folder in temp are gone or partially gone.
So I wanted to know, if I can extract the self-contained file to a specific directory and if possible choose to include the config files in this extraction.
Like saying extract to C:\AppName and run it from there.