I have created a console app for Net 5.0 and built realease of it. In release folder I found some files, which app don't really need (It starts and works without them): %AppName%.deps.json and %AppName%.runtimeconfig.dev.json. In the second file I found some list (under name 'additionalProbingPaths') with three absolute paths on my local machine (two of them even contains my user name). Obviously, those paths not useful on any other machine where my app will be run. I sought a way to disable generating this file at all, but found only that:
<GenerateRuntimeConfigurationFiles>false</GenerateRuntimeConfigurationFiles>
But this option disables generating %AppName%.runtimeconfig.json and my executable file not working. I found also this link (source code of MSBuild Task for generating those files). This task contains two bool options: WriteAdditionalProbingPathsToMainConfig and GenerateRuntimeConfigDevFile. They are almost what I want, but I can't find a way to set this options via project file's PropertyGroup. I tried:
<WriteAdditionalProbingPathsToMainConfig>true</WriteAdditionalProbingPathsToMainConfig>
<GenerateRuntimeConfigDevFile>false</GenerateRuntimeConfigDevFile>
But it doesn't work. Now I just delete that file via del command in Post-Build Event. Is there any way to prevent generate that file (%AppName%.runtimeconfig.dev.json)? These 'additionalProbingPaths', as I understand, lead to some local nuget repositories (but my app NOT install any of nuget packages!):
C:\\Users\\%UserName%\\.nuget\\packages
C:\\Users\\%UserName%\\.dotnet\\store\\|Arch|\\|tfm|
What are they needed for if my app is already built and ready to run. Or end app user need to download some packages to run my app? I use Visual Studio 2019, if it matters.
P.S: Sorry for such a stupid question but I'm a novice to Net Core.

