In property dialog for a single c++ file, I could see the command to compile the the single c++ file.
But for c# project, I could not even compile a single cs file. Are there any means to know what's the exact command line used in VS to produce the final assembly?
First thing I would like to declare is you are able to compile a single C# code, but you need to put the code to a separate project, or build it via command line, see here: How to compile just one file in c#?
For your second question, it seems you are unable to access or modify the command used in VS to compile C# code. However, you could check all your building options via Property (right click on your project name)->Build
, and specify your customized pre and post building events on Property->Build Event
.
As the last resort, turn on MSBuild logging to see some building details. You can refer to this page and this page.