Hi Scott,
The statement's purpose is to set a default value for the property
"Configuration" if it's not explicitly set by user. Therefore if you didn't
specify "/p:Configuration=Debug" on the command line, it will have the
value "Debug" by default.
Note the condition attribute could be either specified on a PropertyGroup
node or a single property node:
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == ''
">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>2a7074be-72dd-4b92-9d44-eb6023010ec7</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ConsoleApplication1</RootNamespace>
<AssemblyName>ConsoleApplication1</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
In above file, the first ProjectGroup node is defining several common
properties and only the property "Configuration" has default value "Debug"
specified. The second ProjectGroup node has a condition which uses the
Configuration and Platform properties to determine if its enclosed
properties such as "DebugSymbols", "DebugType" should have which values.
Hope this helps.
Regards,
Walter Wang (
[email protected], remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.