Here is a story, the problem encountered by Xiaobai in the story character may be the same as yours, find a solution from the boss, please continue to read, maybe it can help you
As shown in the figure below, it is convenient to package and publish together
If you want to use it at that time, you only need to call the following resource Resources object
var file = Resources.adb;
var img = Resources.img1;
//...
Code to get file path
var p = new Process();
p.StartInfo.FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Resources", "adb.exe");
//...
Select the resource file, as shown in the figure below,
in the file attribute column, set all the required files to be copied to the output directory.