In my c# winforms application, I have to use some C code which is generated from TargetLink model. For this, in my solution I have added the C Code to a VC++ project and am building it into a static library. I have added another VC++ project with a C++ class to interface between C# and C(Static Library) and building it to a dll.
I have a new requirement in which the user will browse to the location of the C Code as the code may change periodically. The application has to use this code. I want to build a dll with the C++ class and the C Code.
What I have tried so far is parsing the .vcxproj file and changed the path of the C Files to the new location. I find this complicated and am looking for a better way to do this.
Do you use MS Visual Studio? Then if you write a PreBuild command for the C++ project which overwrites the source files if newer version exists in the user's location, it doesn't solve your problem?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.