xsharp.eu • Project Properties > Build* vs Build Events
Page 1 of 1

Project Properties > Build* vs Build Events

Posted: Sat Dec 28, 2019 6:54 am
by rjpajaron
Hello,

What takes precedence: Build* "Output > Platform Target = x86" or Above combobox "Platform > Active (Any CPU)"
12-28-2019 14-49-56.png
12-28-2019 14-49-56.png (14.38 KiB) Viewed 247 times
12-28-2019 14-50-17.png
12-28-2019 14-50-17.png (21.92 KiB) Viewed 247 times
For now, I let default settings to go by... Although in C# I have already a multi target platform config settings. I will apply the same on X# in the future. some of our .NET apps requires AnyCPU to work, especially the thing that deals with WebAPI.

Rene

Project Properties > Build* vs Build Events

Posted: Sat Dec 28, 2019 10:54 am
by robert
Rene,
The setting on the Build page takes precedence. This gets translated into the command line for the compiler.
The other 'AnyCpu' platform is more like a 'Name' at solution level that is used to joins different settings for different projects.
You can also rename this to x86 if you want to.
To do that:
- open the platform combo from the toolbar
- choose configuration manager
- in the "active solution platforms" combo choose "edit"
- then select the AnyCpu platform and rename it to for example "x86"

Robert