简体   繁体   English

C#/ asp.net编译项目

[英]c# / asp.net compiling project

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. 他曾考虑使用单独的文本文件,但出于可移植性和安全性的考虑,我们希望将变量包括在.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 我看过这样的教程: http : //www.c-sharpcorner.com/UploadFile/dommym/5598/或这个教程: 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. 若要使用asp.net获取客户端的数据,请将其插入源中,然后进行编译。 But these articles only talk about single file sources and our main project has multiple .cs files. 但是这些文章仅讨论单个文件源,而我们的主要项目有多个.cs文件。 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. 您可以从项目中的任何位置引用嵌入的字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM