me and a friend are working on some software in which custom variables need to be inserted into the code for each customer. Whe thought about using a seperate text file but for portability and security we want to include the variables into the .exe.
I have looked at tutorials like this one : http://www.c-sharpcorner.com/UploadFile/dommym/5598/ or this one : http://support.micr开发者_Go百科osoft.com/kb/304655
to use asp.net to get the client's data, insert it into the source and then compile it. But these articles only talk about single file sources and our main project has multiple .cs files. So my question was : how would I compile a whole project instead of just one file ?
You can use embedded resource files for this.
You can reference the embedded strings from anywhere in the project.
精彩评论