Manvinder
Manvinder

Reputation: 4591

Different output in MSBuild vs Visual Studio Build

I have an application and a Custom configuration that i created for my project requirement, which copy settings from x86.

Now if I build the application from Visual Studio, it is generating the output in the "Custom Configuration" folder under Bin directory. But if i use MSbuild from the command line then the output will be in x86/Custom Configuration folder.

I am trying to understand the difference.

Actually msbuild is using x86 platform, instead of Active. How should i change it.

While using MSBuild from the command line, i just want to pass configuration as parameter and not the platform, i believe it should automatically picked the right platform associated with that configuration.As per Specified in Project Properties and Build Tab.

Upvotes: 1

Views: 1563

Answers (1)

heavyd
heavyd

Reputation: 17751

You can select a custom platform and configuration using the /property switch on the msbuild command line:

msbuild /p:"Platform=MyPlatform" /p:"Configuration=CustomConfig"

Upvotes: 2

Related Questions