How to set the default build target for x86 for all projects in Visual Studio 2008?

Is there a way to set the default action for assembly on x86 instead of any processor in Visual Studio 2008?

Thus, all new projects will be compiled for x86, and great features such as editing and continuation will work.

Perhaps a registry pen or something as simple as a global option.

Thanks Carl

+3
source share
2 answers

You can edit project templates, say, using Notepad. They are located at Common7\IDE\ProjectTemplates(Cache)\CSharp\Windows\xxxx\*.zip. Edit the .csproj file in the .zip archive and add

<PlatformTarget>x86</PlatformTarget>

into the Debug and / or Release Property group of properties.

VS2010, x86.

+4

, , ; ,

<Import Project="..\template\defaults.csproj" />

​​ x86 ( CPU):

<PropertyGroup>
  <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
  <!--goes on setting outputpath, default build options, ...-->
</PropertyGroup>

VS Debug | x86 config.

+1

Source: https://habr.com/ru/post/1758897/


All Articles