What is the difference between the /Ox and /O2 compiler options?
I found it here: Ox and O2 are almost identical. They differ only in the fact that O2 also throws GF and Gy. There is almost no reason to avoid throwing these two switches.
I found it here: Ox and O2 are almost identical. They differ only in the fact that O2 also throws GF and Gy. There is almost no reason to avoid throwing these two switches.
I’ll start with the first option. Break on all errors simply disables your error handlers. This is useful when you are attempting to debug after you’ve put in error handlers, because you can have errors in the handlers themselves, or you can lose track of where the error happened when the error bubbles up the … Read more
Have you seen this? (most info is in the penultimate post) /p:DefineConstants=”MYSYMBOL1;MYSYMBOL2″
I blogged this a long time ago, and I don’t know if it still valid or not, but the code is something like… private void testfile(string file) { if(isAssemblyDebugBuild(file)) { MessageBox.Show(String.Format(“{0} seems to be a debug build”,file)); } else { MessageBox.Show(String.Format(“{0} seems to be a release build”,file)); } } private bool isAssemblyDebugBuild(string filename) { return … Read more