Advertisement
Guest User

Common settings

a guest
Jul 9th, 2012
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3.  
  4.   <!-- Project name -->
  5.   <PropertyGroup>
  6.     <ProjectName  Condition=" '$(ProjectName)' == '' ">$(MSBuildProjectName)</ProjectName>
  7.     <AssemblyName Condition=" '$(AssemblyName)' == '' ">$(ProjectName)</AssemblyName>
  8.     <TargetName   Condition=" '$(TargetName)' == '' and '$(AssemblyName)' != ''">$(AssemblyName)</TargetName>
  9.     <ShouldUnsetParentConfigurationAndPlatform>false</ShouldUnsetParentConfigurationAndPlatform>
  10.   </PropertyGroup>
  11.  
  12.   <!-- Target framework -->
  13.   <PropertyGroup>
  14.     <TargetFrameworkVersion Condition=" '$(TargetFrameworkVersion)' == '' ">v4.0</TargetFrameworkVersion>
  15.     <TargetFrameworkProfile Condition=" '$(TargetFrameworkProfile)' == '' ">Client</TargetFrameworkProfile>
  16.   </PropertyGroup>
  17.  
  18.   <!-- Platform -->
  19.   <PropertyGroup>
  20.     <Platform Condition=" '$(Platform)'=='' ">AnyCPU</Platform>
  21.   </PropertyGroup>
  22.  
  23.   <!--   DIRECTORIES -->
  24.   <PropertyGroup>
  25.     <build_path Condition=" '$(build_path)' == '' ">$(MSBuildProjectDirectory)\..\..\build\</build_path>
  26.  
  27.     <base_path>$(build_path)\$(Platform)\$(Configuration)</base_path>
  28.     <intermediate_path>$(base_path)\intermediate\$(TargetName)</intermediate_path>
  29.     <IntDir>$(intermediate_path)\</IntDir>
  30.     <BaseIntermediateOutputPath >$(IntDir)</BaseIntermediateOutputPath >
  31.     <IntermediateOutputPath>$(IntDir)</IntermediateOutputPath>
  32.     <OutDir>$(base_path)\bin\</OutDir>
  33.     <OutputPath>$(OutDir)</OutputPath>
  34.   </PropertyGroup>
  35.  
  36.   <ItemDefinitionGroup>
  37.     <BuildLog>
  38.       <Path>$(IntDir)\$(MSBuildProjectName).log</Path>
  39.     </BuildLog>
  40.   </ItemDefinitionGroup>
  41.  
  42.  
  43.  
  44.  
  45.   <PropertyGroup Label="Configuration">
  46.     <ErrorReport>prompt</ErrorReport>
  47.     <WarningLevel>4</WarningLevel>
  48.     <FileAlignment>512</FileAlignment>
  49.  
  50.     <!-- Use high warning level -->
  51.     <!--WarningLevel>3</WarningLevel-->
  52.     <DisabledWarnings>$(DisabledWarnings);1591;1734;1668</DisabledWarnings>
  53.     <TreatWarningsAsErrors>True</TreatWarningsAsErrors>
  54.   </PropertyGroup>
  55.  
  56.   <PropertyGroup Condition=" '$(use_ttm_time_stamps)' == '1' ">
  57.     <DefineConstants>%(DefineConstants);USING_TTM_TIMESTAMPS;</DefineConstants>
  58.   </PropertyGroup>
  59.  
  60.   <!-- CONFIGURATION (Debug vs. Release) SPECIFIC PROPERTIES -->
  61.   <PropertyGroup Condition=" '$(Configuration)' == 'Debug' " Label="Configuration">
  62.     <DefineConstants>$(DefineConstants);DEBUG;TRACE;_CHECKED</DefineConstants>
  63.     <DebugSymbols>true</DebugSymbols>
  64.     <DebugType>full</DebugType>
  65.     <Optimize>false</Optimize>
  66.     <DefineDebug>True</DefineDebug>
  67.     <DefineTrace>True</DefineTrace>
  68.   </PropertyGroup>
  69.  
  70.   <PropertyGroup Condition=" '$(Configuration)' == 'Release' " Label="Configuration">
  71.     <DefineConstants>$(DefineConstants);TRACE</DefineConstants>
  72.     <DebugType>pdbonly</DebugType>
  73.     <Optimize>true</Optimize>
  74.     <DefineDebug>False</DefineDebug>
  75.     <DefineTrace>True</DefineTrace>
  76.   </PropertyGroup>
  77.  
  78.   <!-- Predefined configurations for VS -->
  79.   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
  80.   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
  81.  
  82. </Project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement