c++ - Compile c code as c# -


hi may strange question have c++ code compile c# code using visual studio 2012.

the code self compatible , compile both compilers.

what have c# compiler treat .c files .cs files , compile them c#, reason still need particular c++ file old library dont want have 2 copies of code when update something.

currently have batch file copies .c code c++ project within solution c# project within same solution , uses pre processor , compiles loose breakpoints, etc , bit of problem.

the file extension not relevant set build action compile in properties of file. syntax highlighting might have problems not compiler.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -