How to add MANUALLY a compiler option to VC# express?
How to add MANUALLY a compiler option to VC# express? For example... I dont see any combo box to define /platform .... SO will be good to
1) Pls add a combo box so the user can choose x86, AMD64, IA64 or MSIL assembly output type
2) Pls add too a text box where I can introduce/change manually the compiler options I wanna put in the IDE compilation ( like you did in the VC++... I could modify/add compiler options like /Gm, /Z, etc... )
I am telling this because the Managed DirectX doesn't allow x64 and i NEED to make my c# programs in x86 at the moment if I wanna use it....
thx
[611 byte] By [
bubu] at [2007-12-16]
bubu -
This option was removed from the C# Express edition, so it is not possible to set this directly. There is however a workaround for users who need to tie their app to x86 for things like Managed DirectX. Here are the workaround steps:
1. Open Tools->Options
2. Check “Show all settings”
3. Check “Project and Solution->Show Advanced Build Configurations”
4. Open Build->Configuration Manager
5. Select the combo box under the “Platform” column for the project you want to target x86
6. Choose “<New…>”
7. Under “New Platform” select x86
8. Hit OK, then Close
9. Note that the Toolbar combobox for Platform Configuration now lists both x86 and AnyCPU and has x86 selected
10. Building/Running/Debugging will now build x86-only binaries. You can switch back to the AnyCPU configuration to change this.
Thanks,
Luke