1

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.microsoft.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 ?

1 Answer 1

1

You can use embedded resource files for this.

You can reference the embedded strings from anywhere in the project.

Sign up to request clarification or add additional context in comments.

8 Comments

Could you give me a example on how to use this ?
@Quincy - The linked MSDN article and the links it contains have examples.
Thanks looked at it a couple of times, also tried googling a bit but I still don't get it. Sorry if this looks like I don't know anything about programming but visual studio normaly does everything for me and now all of the sudden I have to do it myself.
Yes but what to do with it and how can I use it to compile the entire project ?
@Xyro - How do you mean to compile an entire project? You add resource files, add resources to them and reference the resources. There is nothing more to it.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.