Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Directory.Build.props 2.44 KiB
Newer Older
<Project>
  <PropertyGroup>
    <!-- For a Release-Candidate uncomment the following line: -->
    <!--<DefineConstants>RELEASE_CANDIDATE</DefineConstants>--> 
    <!-- For a Release uncomment the following line: -->
    <DefineConstants>CERTIFICATION_RELEASE</DefineConstants>

    <!-- Global VECTO Version -->
    <MainProductVersion>4.1.3</MainProductVersion>
    <!-- <VersionSuffix>RC</VersionSuffix> -->
    <!-- The following settings are used as default values for ALL projects -->
    <Days>$([System.DateTime]::UtcNow.Subtract($([System.DateTime]::new(2015,1,1))).Days)</Days>
    <VersionPrefix>$(MainProductVersion).$(Days)</VersionPrefix>

    <Authors>Graz University of Technology</Authors>
    <Company>European Union</Company>
    <Copyright>Copyright © 2012-$([System.DateTime]::UtcNow.Year)</Copyright>
    <!-- Set to true for VectoCore to fix Ninject version conflicts-->
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <DisableDiagnosticTracing>true</DisableDiagnosticTracing>
    <RemoveIntegerChecks>true</RemoveIntegerChecks>
    <DebugType>none</DebugType>
    <WarningLevel>5</WarningLevel>
    <DebugSymbols>false</DebugSymbols>
  </PropertyGroup>

  <PropertyGroup Condition="$(DefineConstants.Contains('RELEASE_CANDIDATE'))">
    <VersionSuffix>RC</VersionSuffix>
  </PropertyGroup>
  <PropertyGroup Condition="$(DefineConstants.Contains('CERTIFICATION_RELEASE'))">
    <VersionSuffix></VersionSuffix>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)'=='Debug'">
    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
    <RemoveIntegerChecks>false</RemoveIntegerChecks>
    <WarningLevel>5</WarningLevel>
    <DebugType>pdbonly</DebugType>
    <DebugSymbols>true</DebugSymbols>
    <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)'=='Release' Or '$(Configuration)'=='Deploy'">
    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
    <RemoveIntegerChecks>true</RemoveIntegerChecks>
    <WarningLevel>1</WarningLevel>
    <DebugType>none</DebugType>
    <DebugSymbols>false</DebugSymbols>
    <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)'=='MockupDeploy'">
    <VersionSuffix>Mockup</VersionSuffix>
  </PropertyGroup>
</Project>