Check out example codes for "c# compile just one exe". It will help you in understanding the concepts better.

Code Example 1

dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true

Learn ReactJs, React Native from akashmittal.com