Reputation: 15241
I'm trying to target a C# application to 32bit architecture, but in the platform select list, properties > build menu, there is only the 'Active (Any CPU)' option. I'm using C# 2008 Express Edition.
The app builds fine and executes without problem on 32bit, but because of a component (flash content), it fails when run on a 64 bit platform.
I'm worried that the issue is using express, from MSDN:
"The Visual Studio Express Editions, such as Visual C# Express, do not support optimization for a specific CPU type. This is supported only in the full Visual Studio product.".
Is this even possible to do? It's not so much a question of optimisation as targetting.. ?
Upvotes: 1
Views: 86
Reputation: 754725
I don't use the express editions of Visual Studio very often so I'm not sure what the UI differences may be. In a normal version of Visual Studio though you can control the targetted CPU by going to
If that UI isn't available in an express edition you should be able to just manually set it in the project file. Just open up the .csproj file and add the following line
<PlatformTarget>x86</PlatformTarget>
Upvotes: 3