How to change source files in Pre-Build ... without changing source files?

therefore, I am using Visual Studio 2005 and for my current project I am creating a C # add-in to handle aspect weaving for AspectC ++. It is simple enough to compile the aspect and source files and pass them to the aspect compiler, but it creates new (modified) source files. I am trying to imitate the standard AspectC ++ add-in: http://www.pure-systems.com/AspectC_Add-In.22+M54a708de802.0.html, so I would like to leave the source files for the project unchanged as I insert the files into the C ++ compiler. Assuming I can do this (I don’t know how to do this), how can I get the debugger to correctly specify the source source files? I know that I will need to disable the VS option so that the source code does not match the compiled version, but I do not understand how to link the two without directly modifying the source files. Any tips?

+3
source share
1 answer

, . #line, , . , , #line, .

. , #line. cl.exe/P . , , /D /I, .

http://msdn.microsoft.com/en-us/library/b5w2czay(VS.71).aspx

0

Source: https://habr.com/ru/post/1708541/


All Articles