I have already attached all the DLL files to the EXE file using Costura, but what about JSON now, because this is one of the main files in my application, it is responsible for the settings inside the application, and I would really not want any user to touch them.
UPD:
I added the settings file.json just as you say, added it to the resources and set everything as it should be, but how do I use it now? Here is the main question, I tried to do so:
string path = TestProject.Properties.Resources.settings;
using (StreamReader sw = new StreamReader(path))
{
string json = sw.ReadToEnd();
cis = JsonConvert.DeserializeObject<ClientInfoSave>(json);
ClientInfo.version_project = cis.version_project;
}
And I get an error: Cannot implicitly convert byte type to string
What am I doing wrong? I do not understand, please tell me how to fix it..