0

I came across this thread which talks about building a solution from command prompt

It states that you need to do

msbuild project.sln  /Flags...

Now currently I have everything setup in VS2012 and all I do is build > Rebuild solution in debug mode.Everything is already setup in VS2012.I simply want to automate that process so In my batch file I do this

msbuild project.sln

However I do not specify any flags is there a difference between the two. Isnt it suppose to pick up flags from the project.sln ?

Community
  • 1
  • 1
MistyD
  • 16,373
  • 40
  • 138
  • 240

1 Answers1

0

There is "default to" logic in the csproj files.

example:

<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>

This says that if you don't pass in a Configuration value, (aka, it is equal to an empty string ''), then use "Debug" for the value.

Same for Platform and "AnyCPU".

granadaCoder
  • 26,328
  • 10
  • 113
  • 146