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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -